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:
@@ -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->update_status(charonservice,
|
||||||
CHARONSERVICE_CHILD_STATE_DOWN);
|
CHARONSERVICE_CHILD_STATE_DOWN);
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user