ike: Fix memory leak if remote address is kept

This commit is contained in:
Tobias Brunner
2015-07-27 19:38:59 +02:00
parent 81f1aa8dc3
commit faebdeac8e
+4
View File
@@ -1230,6 +1230,10 @@ static void resolve_hosts(private_ike_sa_t *this)
* address family might have changed */
set_other_host(this, host);
}
else
{
host->destroy(host);
}
}
if (this->local_host)