]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 c5b3748d7393e54053d92c9ea0eecf905e1ddf3a..21b3baefee9f436fec5fcdfdee89b12fb0f6dddf 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);