android: Set CHILD_STATE_DOWN whenever the CHILD_SA goes down
authorTobias Brunner <tobias@strongswan.org>
Mon, 14 Jul 2014 13:08:24 +0000 (15:08 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 22 Jul 2014 08:55:51 +0000 (10:55 +0200)
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.

src/frontends/android/jni/libandroidbridge/backend/android_service.c

index db9bebc..c893f62 100644 (file)
@@ -381,14 +381,8 @@ METHOD(listener_t, child_updown, bool,
                }
                else
                {
                }
                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);
                        charonservice->update_status(charonservice,
                                                                                 CHARONSERVICE_CHILD_STATE_DOWN);
-                       return FALSE;
                }
        }
        return TRUE;
                }
        }
        return TRUE;