Throw an alert when the peer address cannot be resolved during initiation.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user