From: Tobias Brunner Date: Thu, 15 Nov 2012 16:25:44 +0000 (+0100) Subject: android: Private key bug has been fixed with Android 4.2 X-Git-Tag: 5.0.2dr4~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=277ff80a2ec20467ff2dfc89ef2442676099321b;p=thirdparty%2Fstrongswan.git android: Private key bug has been fixed with Android 4.2 --- diff --git a/src/frontends/android/jni/libandroidbridge/backend/android_private_key.c b/src/frontends/android/jni/libandroidbridge/backend/android_private_key.c index 38bbb4755e..21b743767b 100644 --- a/src/frontends/android/jni/libandroidbridge/backend/android_private_key.c +++ b/src/frontends/android/jni/libandroidbridge/backend/android_private_key.c @@ -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 "