android: Private key bug has been fixed with Android 4.2
authorTobias Brunner <tobias@strongswan.org>
Thu, 15 Nov 2012 16:25:44 +0000 (17:25 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 19 Nov 2012 10:43:31 +0000 (11:43 +0100)
src/frontends/android/jni/libandroidbridge/backend/android_private_key.c

index 38bbb47..21b7437 100644 (file)
@@ -232,7 +232,7 @@ METHOD(private_key_t, destroy, void,
                JNIEnv *env;
 
                androidjni_attach_thread(&env);
-               if (android_sdk_version >= ANDROID_JELLY_BEAN)
+               if (android_sdk_version == ANDROID_JELLY_BEAN)
                {       /* there is a bug in JB that causes a SIGSEGV if the key object is
                         * garbage collected so we intentionally leak the reference to it */
                        DBG1(DBG_LIB, "intentionally leaking private key reference due to "