diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-09-19 13:40:14 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-09-25 10:16:45 +0200 |
commit | b3a7ba14f1fef740f502abe10c6976f340ef00b9 (patch) | |
tree | 06b931eba3079fcaca860ffc019f54c6dc98ff6b /src | |
parent | 0c8c965ca1ef27decaad7ddb9238c758fd053ad5 (diff) | |
download | strongswan-b3a7ba14f1fef740f502abe10c6976f340ef00b9.tar.bz2 strongswan-b3a7ba14f1fef740f502abe10c6976f340ef00b9.tar.xz |
Revert "ikev2: Insert MOBIKE tasks at the front of the queue"
This reverts commit 3293d146289d7c05e6c6089ae1f7cdbcea378e63.
The position of tasks in the queue does not actually determine the order
in which they are activated. Instead this is determined by the
statements in task_manager_v2_t.initiate().
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/sa/ikev2/task_manager_v2.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libcharon/sa/ikev2/task_manager_v2.c b/src/libcharon/sa/ikev2/task_manager_v2.c index 0bc5a35fd..834da8a04 100644 --- a/src/libcharon/sa/ikev2/task_manager_v2.c +++ b/src/libcharon/sa/ikev2/task_manager_v2.c @@ -1282,8 +1282,6 @@ METHOD(task_manager_t, process_message, status_t, METHOD(task_manager_t, queue_task, void, private_task_manager_t *this, task_t *task) { - int pos = ARRAY_TAIL; - if (task->get_type(task) == TASK_IKE_MOBIKE) { /* there is no need to queue more than one mobike task */ enumerator_t *enumerator; @@ -1300,12 +1298,9 @@ METHOD(task_manager_t, queue_task, void, } } enumerator->destroy(enumerator); - /* insert MOBIKE tasks first as we currently might not have a usable - * path to initiate any other tasks */ - pos = ARRAY_HEAD; } DBG2(DBG_IKE, "queueing %N task", task_type_names, task->get_type(task)); - array_insert(this->queued_tasks, pos, task); + array_insert(this->queued_tasks, ARRAY_TAIL, task); } /** |