]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Use correct enum values to detect three message tasks for retransmission
authorMartin Willi <martin@revosec.ch>
Thu, 2 Feb 2012 09:49:19 +0000 (10:49 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:40 +0000 (17:31 +0100)
src/libcharon/sa/ikev1/task_manager_v1.c

index 8ebaa9d8ed33563875df9f827283c44f0213e61a..bf798b43e6ef96e147be010b02372e867c098d7e 100755 (executable)
@@ -485,8 +485,8 @@ METHOD(task_manager_t, initiate, status_t,
                        case SUCCESS:
                                /* task completed, remove it */
                                this->active_tasks->remove_at(this->active_tasks, enumerator);
-                               if (task->get_type(task) == AGGRESSIVE ||
-                                       task->get_type(task) == QUICK_MODE)
+                               if (task->get_type(task) == TASK_AGGRESSIVE_MODE ||
+                                       task->get_type(task) == TASK_QUICK_MODE)
                                {       /* last message of three message exchange */
                                        keep = TRUE;
                                }