fixed memleak when initiating to %any
This commit is contained in:
@@ -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))
|
if (this->other_host->is_anyaddr(this->other_host))
|
||||||
{
|
{
|
||||||
|
child_cfg->destroy(child_cfg);
|
||||||
SIG(IKE_UP_START, "initiating IKE_SA");
|
SIG(IKE_UP_START, "initiating IKE_SA");
|
||||||
SIG(IKE_UP_FAILED, "unable to initiate to %%any");
|
SIG(IKE_UP_FAILED, "unable to initiate to %%any");
|
||||||
return DESTROY_ME;
|
return DESTROY_ME;
|
||||||
|
|||||||
Reference in New Issue
Block a user