ike: Remove special handling for routed CHILD_SAs during reauth/reestablish

These are managed in the trap manager, no trap policies will ever be
attached to an IKE_SA (might have been the case in very early releases).
This commit is contained in:
Tobias Brunner
2018-04-12 16:30:28 +02:00
parent 485952ff83
commit a1620c16ec
+1 -15
View File
@@ -1930,21 +1930,7 @@ static status_t reestablish_children(private_ike_sa_t *this, ike_sa_t *new,
{
if (force)
{
switch (child_sa->get_state(child_sa))
{
case CHILD_ROUTED:
{ /* move routed child directly */
remove_child_sa(this, enumerator);
new->add_child_sa(new, child_sa);
action = ACTION_NONE;
break;
}
default:
{ /* initiate/queue all other CHILD_SAs */
action = ACTION_RESTART;
break;
}
}
action = ACTION_RESTART;
}
else
{ /* only restart CHILD_SAs that are configured accordingly */