Respond with NO_PROPOSAL_CHOSEN, if we don't find an ike_cfg.
authorTobias Brunner <tobias@strongswan.org>
Fri, 25 Nov 2011 17:01:25 +0000 (18:01 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Mar 2012 16:31:09 +0000 (17:31 +0100)
src/libcharon/sa/task_manager_v1.c

index fe2f7c7..4427918 100644 (file)
@@ -804,7 +804,10 @@ METHOD(task_manager_t, process_message, status_t,
                        if (ike_cfg == NULL)
                        {
                                /* no config found for these hosts, destroy */
-                               DBG1(DBG_IKE, "no IKE config found for %H...%H", me, other);
+                               DBG1(DBG_IKE, "no IKE config found for %H...%H, sending %N",
+                                        me, other, notify_type_names, NO_PROPOSAL_CHOSEN);
+                               send_notify_response(this, msg,
+                                                                        NO_PROPOSAL_CHOSEN, chunk_empty);
                                return DESTROY_ME;
                        }
                        this->ike_sa->set_ike_cfg(this->ike_sa, ike_cfg);