From 4cfd0db854f0308a824d62b6a030ba88233006e8 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 25 Nov 2011 18:01:25 +0100 Subject: [PATCH] Respond with NO_PROPOSAL_CHOSEN, if we don't find an ike_cfg. --- src/libcharon/sa/task_manager_v1.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcharon/sa/task_manager_v1.c b/src/libcharon/sa/task_manager_v1.c index fe2f7c7ec..442791881 100644 --- a/src/libcharon/sa/task_manager_v1.c +++ b/src/libcharon/sa/task_manager_v1.c @@ -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);