]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Fix remote identity fallback after changing IKE config creation
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 05cb599d71c41f119c90a68886739397538f526f..f37d99295dc2ce59a754326bb4def7fc6c1d497f 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);
        }