Resolve hosts before reauthenticating due to address change.
authorTobias Brunner <tobias@strongswan.org>
Wed, 9 May 2012 13:46:17 +0000 (15:46 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 25 May 2012 15:05:53 +0000 (17:05 +0200)
src/libcharon/sa/ike_sa.c

index 926e2d1..3c0bff2 100644 (file)
@@ -1815,6 +1815,8 @@ METHOD(ike_sa_t, roam, status_t,
                return SUCCESS;
        }
        DBG1(DBG_IKE, "reauthenticating IKE_SA due to address change");
                return SUCCESS;
        }
        DBG1(DBG_IKE, "reauthenticating IKE_SA due to address change");
+       /* since our previous path is not valid anymore, try and find a new one */
+       resolve_hosts(this);
        return reauth(this);
 }
 
        return reauth(this);
 }