fixed memleak when initiating to %any

This commit is contained in:
Martin Willi 2007-06-14 08:44:19 +00:00
parent 04f4e82d53
commit fede28be8b
1 changed files with 1 additions and 0 deletions

View File

@ -785,6 +785,7 @@ static status_t initiate(private_ike_sa_t *this, child_cfg_t *child_cfg)
if (this->other_host->is_anyaddr(this->other_host))
{
child_cfg->destroy(child_cfg);
SIG(IKE_UP_START, "initiating IKE_SA");
SIG(IKE_UP_FAILED, "unable to initiate to %%any");
return DESTROY_ME;