diff options
author | Martin Willi <martin@revosec.ch> | 2011-02-28 10:31:36 +0000 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-02-28 10:31:36 +0000 |
commit | e44ebdcfc8b815ef0bbe56f33708f550a38041f9 (patch) | |
tree | ecae3800a907b2f0396ce88d7a9b4caf7f158551 /src/libcharon/sa/task_manager.c | |
parent | d17304cd295e85833b8137f3f974d4dedff1e9c2 (diff) | |
download | strongswan-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.c | 4 |
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(); } |