aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-05-05 07:40:21 +0000
committerMartin Willi <martin@strongswan.org>2008-05-05 07:40:21 +0000
commit6c90949f18981cf6e5471e2644f30e488a55759b (patch)
tree82e7ee2817e789f2b5cb0466e16d02e491cd5915 /src
parent27d04e055defe459e49480dc88286e5fa87bffb9 (diff)
downloadstrongswan-6c90949f18981cf6e5471e2644f30e488a55759b.tar.bz2
strongswan-6c90949f18981cf6e5471e2644f30e488a55759b.tar.xz
resetting old scheduling policy correctly in free() hook
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/utils/leak_detective.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/leak_detective.c b/src/libstrongswan/utils/leak_detective.c
index aa9e61653..b979c40a7 100644
--- a/src/libstrongswan/utils/leak_detective.c
+++ b/src/libstrongswan/utils/leak_detective.c
@@ -463,7 +463,7 @@ void free_hook(void *ptr, const void *caller)
}
install_hooks();
- pthread_setschedparam(thread_id, oldpolicy, &params);
+ pthread_setschedparam(thread_id, oldpolicy, &oldparams);
}
/**