aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/task_manager.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-02-28 10:31:36 +0000
committerMartin Willi <martin@revosec.ch>2011-02-28 10:31:36 +0000
commite44ebdcfc8b815ef0bbe56f33708f550a38041f9 (patch)
treeecae3800a907b2f0396ce88d7a9b4caf7f158551 /src/libcharon/sa/task_manager.c
parentd17304cd295e85833b8137f3f974d4dedff1e9c2 (diff)
downloadstrongswan-e44ebdcf.tar.bz2
strongswan-e44ebdcf.tar.xz
Slightly change IKE_SA destruction order to inherit properly during ike_rekey task destruction
Diffstat (limited to 'src/libcharon/sa/task_manager.c')
-rw-r--r--src/libcharon/sa/task_manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/sa/task_manager.c b/src/libcharon/sa/task_manager.c
index 9467d1586..7b1fef2b7 100644
--- a/src/libcharon/sa/task_manager.c
+++ b/src/libcharon/sa/task_manager.c
@@ -161,12 +161,12 @@ static void flush(private_task_manager_t *this)
{
this->queued_tasks->destroy_offset(this->queued_tasks,
offsetof(task_t, destroy));
+ this->queued_tasks = linked_list_create();
this->passive_tasks->destroy_offset(this->passive_tasks,
offsetof(task_t, destroy));
+ this->passive_tasks = linked_list_create();
this->active_tasks->destroy_offset(this->active_tasks,
offsetof(task_t, destroy));
- this->queued_tasks = linked_list_create();
- this->passive_tasks = linked_list_create();
this->active_tasks = linked_list_create();
}