fixed memleak when initiating to %any
authorMartin Willi <martin@strongswan.org>
Thu, 14 Jun 2007 08:44:19 +0000 (08:44 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 14 Jun 2007 08:44:19 +0000 (08:44 -0000)
src/charon/sa/ike_sa.c

index 456c0f6..46dc94c 100644 (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;