]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
do not adopt already initiated tasks after rekeying
authorMartin Willi <martin@strongswan.org>
Mon, 20 Apr 2009 11:28:23 +0000 (11:28 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 20 Apr 2009 11:28:23 +0000 (11:28 -0000)
src/charon/sa/task_manager.c

index 88fb7984ec18603543d99c3cd5b0968409348d2e..f959cd7092966fcbc17fcc2de7edd6b0ea527242 100644 (file)
@@ -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);
-       }
 }
 
 /**