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.
This commit is contained in:
Tobias Brunner
2014-07-22 10:55:51 +02:00
parent 1435bd2e1b
commit fb5d541503
@@ -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;