Set request flag to proper value for IKEv1 messages before parsing them.
authorTobias Brunner <tobias@strongswan.org>
Fri, 25 Nov 2011 15:08:12 +0000 (16:08 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Mar 2012 16:31:08 +0000 (17:31 +0100)
src/libcharon/sa/task_manager_v1.c

index b9d2e23..701bb06 100644 (file)
@@ -662,6 +662,7 @@ METHOD(task_manager_t, process_message, status_t,
                (this->initiating.mid == 0 &&
                 this->active_tasks->get_count(this->active_tasks)))
        {
+               msg->set_request(msg, FALSE);
                status = msg->parse_body(msg, this->ike_sa->get_keymat(this->ike_sa));
                if (status != SUCCESS)
                {
@@ -688,6 +689,7 @@ METHOD(task_manager_t, process_message, status_t,
                                                this->responding.packet->clone(this->responding.packet));
                        return SUCCESS;
                }
+               msg->set_request(msg, TRUE);
                status = msg->parse_body(msg, this->ike_sa->get_keymat(this->ike_sa));
                if (status != SUCCESS)
                {