android: Fix remote identity fallback after changing IKE config creation master
authorTobias Brunner <tobias@strongswan.org>
Tue, 18 Jun 2019 08:22:57 +0000 (10:22 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 18 Jun 2019 08:22:57 +0000 (10:22 +0200)
Fixes: 9486a2e5b0b5 ("ike-cfg: Pass arguments as struct")

src/frontends/android/app/src/main/jni/libandroidbridge/backend/android_service.c

index 05cb599..f37d992 100644 (file)
@@ -829,7 +829,7 @@ static job_requeue_t initiate(private_android_service_t *this)
        if (!gateway || gateway->get_type(gateway) == ID_ANY)
        {
                DESTROY_IF(gateway);
-               gateway = identification_create_from_string(server);
+               gateway = identification_create_from_string(ike.remote);
                /* only use this if remote ID was not configured explicitly */
                auth->add(auth, AUTH_RULE_IDENTITY_LOOSE, TRUE);
        }