ike: Fix reestablishing SAs if no child-creating tasks are queued
This commit is contained in:
@@ -1617,8 +1617,11 @@ METHOD(ike_sa_t, reestablish, status_t,
|
|||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
/* check if we have tasks that recreate children */
|
/* check if we have tasks that recreate children */
|
||||||
restart = is_child_queued(this, TASK_QUEUE_ACTIVE) ||
|
if (!restart)
|
||||||
is_child_queued(this, TASK_QUEUE_QUEUED);
|
{
|
||||||
|
restart = is_child_queued(this, TASK_QUEUE_ACTIVE) ||
|
||||||
|
is_child_queued(this, TASK_QUEUE_QUEUED);
|
||||||
|
}
|
||||||
#ifdef ME
|
#ifdef ME
|
||||||
/* mediation connections have no children, keep them up anyway */
|
/* mediation connections have no children, keep them up anyway */
|
||||||
if (this->peer_cfg->is_mediation(this->peer_cfg))
|
if (this->peer_cfg->is_mediation(this->peer_cfg))
|
||||||
|
|||||||
Reference in New Issue
Block a user