From: Tobias Brunner Date: Mon, 14 Jul 2014 13:08:24 +0000 (+0200) Subject: android: Set CHILD_STATE_DOWN whenever the CHILD_SA goes down X-Git-Tag: 5.2.1dr1~116^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5d541503e44f2ca727661040d2fce9392ee96f;p=thirdparty%2Fstrongswan.git android: Set CHILD_STATE_DOWN whenever the CHILD_SA goes down No matter what triggers it. We also don't close the TUN device, but we might handle that differently in the future to allow reestablishing the IKE_SA if host names have to be re-resolved via DNS. --- diff --git a/src/frontends/android/jni/libandroidbridge/backend/android_service.c b/src/frontends/android/jni/libandroidbridge/backend/android_service.c index db9bebcc50..c893f62fe8 100644 --- a/src/frontends/android/jni/libandroidbridge/backend/android_service.c +++ b/src/frontends/android/jni/libandroidbridge/backend/android_service.c @@ -381,14 +381,8 @@ METHOD(listener_t, child_updown, bool, } else { - if (ike_sa->has_condition(ike_sa, COND_REAUTHENTICATING)) - { /* we ignore this during reauthentication */ - return TRUE; - } - close_tun_device(this); charonservice->update_status(charonservice, CHARONSERVICE_CHILD_STATE_DOWN); - return FALSE; } } return TRUE;