]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Don't re-resolve addresses during initiate if they have already been set
authorMartin Willi <martin@revosec.ch>
Fri, 20 Jan 2012 12:54:39 +0000 (13:54 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:38 +0000 (17:31 +0100)
src/libcharon/sa/ike_sa.c

index 5a27de5e7f31feccfba9ef100659c4897c638020..c5683e93b5f65c7640abf6ca9ea4774c54caa68b 100644 (file)
@@ -1077,7 +1077,11 @@ METHOD(ike_sa_t, initiate, status_t,
 {
        if (this->state == IKE_CREATED)
        {
-               resolve_hosts(this);
+               if (this->my_host->is_anyaddr(this->my_host) ||
+                       this->other_host->is_anyaddr(this->other_host))
+               {
+                       resolve_hosts(this);
+               }
 
                if (this->other_host->is_anyaddr(this->other_host)
 #ifdef ME