Check if IKEv1 exchange type matches before handling it as response

This commit is contained in:
Martin Willi
2012-03-20 17:31:18 +01:00
parent e7ae90c194
commit 1cc3e92ccc
+1
View File
@@ -851,6 +851,7 @@ METHOD(task_manager_t, process_message, status_t,
if ((mid && mid == this->initiating.mid) ||
(this->initiating.mid == 0 &&
msg->get_exchange_type(msg) == this->initiating.type &&
this->active_tasks->get_count(this->active_tasks)))
{
msg->set_request(msg, FALSE);