Resolve hosts before reauthenticating due to address change.
[strongswan.git] / 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");
+       /* since our previous path is not valid anymore, try and find a new one */
+       resolve_hosts(this);
        return reauth(this);
 }