sending INTERNAL_ADDRESS_FAILURE if virtual IP requested but none found

This commit is contained in:
Martin Willi
2008-07-01 06:36:52 +00:00
parent 5397a7f91d
commit d510eaea47
2 changed files with 46 additions and 14 deletions
+4 -1
View File
@@ -315,7 +315,10 @@ static status_t build_r(private_ike_config_t *this, message_t *message)
}
if (ip == NULL)
{
DBG1(DBG_IKE, "not assigning a virtual IP to peer");
DBG1(DBG_IKE, "no virtual IP found, sending %N",
notify_type_names, INTERNAL_ADDRESS_FAILURE);
message->add_notify(message, FALSE, INTERNAL_ADDRESS_FAILURE,
chunk_empty);
return SUCCESS;
}
DBG1(DBG_IKE, "assigning virtual IP %H to peer", ip);