adopt-children-job: Avoid reordering CHILD_SAs

References strongswan/strongswan#1041
This commit is contained in:
Tobias Brunner 2022-05-09 13:33:49 +02:00
parent 3b742c75ab
commit 64d73235c4

View File

@ -212,8 +212,8 @@ METHOD(job_t, execute, job_requeue_t,
this->id); this->id);
if (ike_sa) if (ike_sa)
{ {
while (children->remove_last(children, while (children->remove_first(children,
(void**)&child_sa) == SUCCESS) (void**)&child_sa) == SUCCESS)
{ {
ike_sa->add_child_sa(ike_sa, child_sa); ike_sa->add_child_sa(ike_sa, child_sa);
} }