ike-sa: Resolve hosts before reestablishing an IKE_SA

This commit is contained in:
Tobias Brunner
2013-09-23 11:49:52 +02:00
parent e3f64a79c2
commit 9292357030
+2
View File
@@ -1655,6 +1655,8 @@ METHOD(ike_sa_t, reestablish, status_t,
new->set_other_host(new, host->clone(host));
host = this->my_host;
new->set_my_host(new, host->clone(host));
/* resolve hosts but use the old addresses above as fallback */
resolve_hosts((private_ike_sa_t*)new);
/* if we already have a virtual IP, we reuse it */
enumerator = array_create_enumerator(this->my_vips);
while (enumerator->enumerate(enumerator, &host))