Check if IKEv1 exchange type matches before handling it as response
authorMartin Willi <martin@revosec.ch>
Tue, 13 Dec 2011 08:40:26 +0000 (09:40 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:18 +0000 (17:31 +0100)
src/libcharon/sa/task_manager_v1.c

index c5b3748..21b3bae 100755 (executable)
@@ -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);