Respond with NO_PROPOSAL_CHOSEN, if we don't find an ike_cfg.

This commit is contained in:
Tobias Brunner
2012-03-20 17:31:09 +01:00
parent 6be8d33daa
commit 4cfd0db854
+4 -1
View 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);