android: Fix implementation of change_state() method in Android IMC
authorTobias Brunner <tobias@strongswan.org>
Fri, 21 Sep 2018 08:55:34 +0000 (10:55 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 21 Sep 2018 08:55:34 +0000 (10:55 +0200)
The signature was changed with 731e043c8e07 ("libimcv: Reset of IMC state for
new measurement cycle").

src/frontends/android/app/src/main/jni/libandroidbridge/byod/imc_android_state.c

index 6179bd5..6a04157 100644 (file)
@@ -116,10 +116,14 @@ METHOD(imc_state_t, get_contracts, seg_contract_manager_t*,
        return this->contracts;
 }
 
-METHOD(imc_state_t, change_state, void,
+METHOD(imc_state_t, change_state, TNC_ConnectionState,
        private_imc_android_state_t *this, TNC_ConnectionState new_state)
 {
+       TNC_ConnectionState old;
+
+       old = this->state;
        this->state = new_state;
+       return old;
 }
 
 METHOD(imc_state_t, set_result, void,