android: Fix PA-TNC construction based on data passed via JNI
authorTobias Brunner <tobias@strongswan.org>
Mon, 13 Oct 2014 16:18:56 +0000 (18:18 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 15 Oct 2014 11:55:13 +0000 (13:55 +0200)
src/frontends/android/jni/libandroidbridge/byod/imc_android.c

index 0806552..6432b95 100644 (file)
@@ -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;