fixed payload order (again)
authorMartin Willi <martin@strongswan.org>
Thu, 8 Mar 2007 20:21:17 +0000 (20:21 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 8 Mar 2007 20:21:17 +0000 (20:21 -0000)
src/charon/sa/ike_sa.c
src/charon/sa/task_manager.c

index 7cb60b4..b8bfed5 100644 (file)
@@ -686,10 +686,10 @@ static status_t initiate(private_ike_sa_t *this,
                this->task_manager->queue_task(this->task_manager, task);
                task = (task_t*)ike_cert_create(&this->public, TRUE);
                this->task_manager->queue_task(this->task_manager, task);
-               task = (task_t*)ike_config_create(&this->public, policy);
-               this->task_manager->queue_task(this->task_manager, task);
                task = (task_t*)ike_auth_create(&this->public, TRUE);
                this->task_manager->queue_task(this->task_manager, task);
+               task = (task_t*)ike_config_create(&this->public, policy);
+               this->task_manager->queue_task(this->task_manager, task);
        }
        
        task = (task_t*)child_create_create(&this->public, policy);
@@ -746,10 +746,10 @@ static status_t acquire(private_ike_sa_t *this, u_int32_t reqid)
                this->task_manager->queue_task(this->task_manager, task);
                task = (task_t*)ike_cert_create(&this->public, TRUE);
                this->task_manager->queue_task(this->task_manager, task);
-               task = (task_t*)ike_config_create(&this->public, policy);
-               this->task_manager->queue_task(this->task_manager, task);
                task = (task_t*)ike_auth_create(&this->public, TRUE);
                this->task_manager->queue_task(this->task_manager, task);
+               task = (task_t*)ike_config_create(&this->public, policy);
+               this->task_manager->queue_task(this->task_manager, task);
        }
        
        child_create = child_create_create(&this->public, policy);
index 050f651..4c6a199 100644 (file)
@@ -485,10 +485,10 @@ static status_t process_request(private_task_manager_t *this,
                        this->passive_tasks->insert_last(this->passive_tasks, task);
                        task = (task_t*)ike_cert_create(this->ike_sa, FALSE);
                        this->passive_tasks->insert_last(this->passive_tasks, task);
-                       task = (task_t*)ike_config_create(this->ike_sa, NULL);
-                       this->passive_tasks->insert_last(this->passive_tasks, task);
                        task = (task_t*)ike_auth_create(this->ike_sa, FALSE);
                        this->passive_tasks->insert_last(this->passive_tasks, task);
+                       task = (task_t*)ike_config_create(this->ike_sa, NULL);
+                       this->passive_tasks->insert_last(this->passive_tasks, task);
                        task = (task_t*)child_create_create(this->ike_sa, NULL);
                        this->passive_tasks->insert_last(this->passive_tasks, task);
                        break;