Set request flag to proper value for IKEv1 messages before parsing them.

This commit is contained in:
Tobias Brunner
2012-03-20 17:31:08 +01:00
parent 1960312cfd
commit 7519106d07
+2
View 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)
{