fixed potential segfault in resolve_hosts
This commit is contained in:
1 parent
d61d1913e1
commit
5353f22ed7
1 file changed
+4
-1
@@ -1058,7 +1058,10 @@ static void resolve_hosts(private_ike_sa_t *this)
|
|||||||
host->destroy(host);
|
host->destroy(host);
|
||||||
host = charon->kernel_interface->get_source_addr(
|
host = charon->kernel_interface->get_source_addr(
|
||||||
charon->kernel_interface, this->other_host);
|
charon->kernel_interface, this->other_host);
|
||||||
host->set_port(host, IKEV2_UDP_PORT);
|
if (host)
|
||||||
|
{
|
||||||
|
host->set_port(host, IKEV2_UDP_PORT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (host)
|
if (host)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user