ike-sa: Resolve hosts before reestablishing an IKE_SA
authorTobias Brunner <tobias@strongswan.org>
Fri, 20 Sep 2013 12:03:23 +0000 (14:03 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 23 Sep 2013 09:49:52 +0000 (11:49 +0200)
src/libcharon/sa/ike_sa.c

index 2015708..0282087 100644 (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))