ike: Use the original port when remote resolves to %any

When reestablishing the IKE_SA we should still use the original port
when right resolves to %any as some implementations might not like
initial IKE messages on port 4500 (especially for IKEv1).
This commit is contained in:
Tobias Brunner
2015-08-19 11:34:25 +02:00
parent bb1d9e454d
commit 2d14cb4d6c
+3 -1
View File
@@ -1240,7 +1240,9 @@ static void resolve_hosts(private_ike_sa_t *this)
set_other_host(this, host);
}
else
{
{ /* reuse the original port as some implementations might not like
* initial IKE messages on other ports */
this->other_host->set_port(this->other_host, host->get_port(host));
host->destroy(host);
}
}