fuzz: Support build with -fsanitize=fuzzer instead of libFuzzer.a
[strongswan.git] / 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);
        }