]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Double check that we could select a TS as quick mode responder
authorMartin Willi <martin@revosec.ch>
Thu, 22 Dec 2011 12:26:38 +0000 (13:26 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:31 +0000 (17:31 +0100)
src/libcharon/sa/ikev1/tasks/quick_mode.c

index 94e5bb85a31ef2edde04c15b54f1b4b3e0c2cb34..017ce97d4b5025bd93887d49344d7fcb2222f8bb 100644 (file)
@@ -699,10 +699,10 @@ METHOD(task_t, process_r, status_t,
                        }
                        tsi->destroy_offset(tsi, offsetof(traffic_selector_t, destroy));
                        tsr->destroy_offset(tsr, offsetof(traffic_selector_t, destroy));
-                       if (!this->config)
+                       if (!this->config || !this->tsi || !this->tsr)
                        {
-                               DBG1(DBG_IKE, "no child config found");
-                               return send_notify(this, NO_PROPOSAL_CHOSEN);
+                               DBG1(DBG_IKE, "no matching CHILD_SA config found");
+                               return send_notify(this, INVALID_ID_INFORMATION);
                        }
 
                        sa_payload = (sa_payload_t*)message->get_payload(message,