From 8a36c7e20d80e58a37c08f36b05b9e4b48354822 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 20 Apr 2009 11:28:23 +0000 Subject: [PATCH] do not adopt already initiated tasks after rekeying --- src/charon/sa/task_manager.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/charon/sa/task_manager.c b/src/charon/sa/task_manager.c index 88fb7984e..f959cd709 100644 --- a/src/charon/sa/task_manager.c +++ b/src/charon/sa/task_manager.c @@ -942,15 +942,6 @@ static void adopt_tasks(private_task_manager_t *this, private_task_manager_t *ot task->migrate(task, this->ike_sa); this->queued_tasks->insert_first(this->queued_tasks, task); } - - /* reset active tasks and move them to others queued tasks */ - while (other->active_tasks->remove_last(other->active_tasks, - (void**)&task) == SUCCESS) - { - DBG2(DBG_IKE, "migrating %N task", task_type_names, task->get_type(task)); - task->migrate(task, this->ike_sa); - this->queued_tasks->insert_first(this->queued_tasks, task); - } } /**