Throw an alert when the peer address cannot be resolved during initiation.

This commit is contained in:
Tobias Brunner
2011-08-12 09:59:27 +02:00
parent ff4b25f9b7
commit 7ab19d571d
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -86,6 +86,8 @@ enum alert_t {
ALERT_SHUTDOWN_SIGNAL,
/** responder authentication failed, no arguments */
ALERT_RESPONDER_AUTH_FAILED,
/** failed to resolve peer address, no arguments */
ALERT_PEER_ADDR_FAILED,
};
/**
+1
View File
@@ -1118,6 +1118,7 @@ METHOD(ike_sa_t, initiate, status_t,
{
child_cfg->destroy(child_cfg);
DBG1(DBG_IKE, "unable to initiate to %%any");
charon->bus->alert(charon->bus, ALERT_PEER_ADDR_FAILED);
return DESTROY_ME;
}