From: Tobias Brunner Date: Fri, 20 Sep 2013 12:03:23 +0000 (+0200) Subject: ike-sa: Resolve hosts before reestablishing an IKE_SA X-Git-Tag: 5.1.1dr4~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92923570300c47c20061475aef1c9dbdd0064c19;p=thirdparty%2Fstrongswan.git ike-sa: Resolve hosts before reestablishing an IKE_SA --- diff --git a/src/libcharon/sa/ike_sa.c b/src/libcharon/sa/ike_sa.c index 2015708a27..0282087827 100644 --- a/src/libcharon/sa/ike_sa.c +++ b/src/libcharon/sa/ike_sa.c @@ -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))