aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-10-13 18:18:56 +0200
committerTobias Brunner <tobias@strongswan.org>2014-10-15 13:55:13 +0200
commitfdeda63df044e7e26b0b20c73dbef5e528ea6e1c (patch)
treebe2146079cc4aceab44f9ccc477dba0d9a937981 /src
parentda241b6c75ebfa1b6477c5cc2b47829495cd22e4 (diff)
downloadstrongswan-fdeda63df044e7e26b0b20c73dbef5e528ea6e1c.tar.bz2
strongswan-fdeda63df044e7e26b0b20c73dbef5e528ea6e1c.tar.xz
android: Fix PA-TNC construction based on data passed via JNI
Diffstat (limited to 'src')
-rw-r--r--src/frontends/android/jni/libandroidbridge/byod/imc_android.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/frontends/android/jni/libandroidbridge/byod/imc_android.c b/src/frontends/android/jni/libandroidbridge/byod/imc_android.c
index 08065529a..6432b957f 100644
--- a/src/frontends/android/jni/libandroidbridge/byod/imc_android.c
+++ b/src/frontends/android/jni/libandroidbridge/byod/imc_android.c
@@ -250,9 +250,8 @@ static pa_tnc_attr_t *get_measurement(pen_type_t attr_type, enumerator_t *args)
{
goto failed;
}
- attr = imcv_pa_tnc_attributes->create(imcv_pa_tnc_attributes,
- attr_type.vendor_id, attr_type.type,
- data);
+ attr = imcv_pa_tnc_attributes->construct(imcv_pa_tnc_attributes,
+ attr_type.vendor_id, attr_type.type, data);
(*env)->ReleaseByteArrayElements(env, jmeasurement, data.ptr, JNI_ABORT);
androidjni_detach_thread();
return attr;