]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Merge branch 'reqid-refcount'
authorTobias Brunner <tobias@strongswan.org>
Mon, 13 Nov 2023 11:02:25 +0000 (12:02 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Nov 2023 11:02:25 +0000 (12:02 +0100)
This fixes issues with CHILD_SAs getting reestablished concurrently.
We intend to reuse the reqid of the previous CHILD_SA, however, previously
the reqids were released and up for reassignment to any other CHILD_SA
or trap policy.  This could cause the reqid to get associated with
completely different traffic selectors, as the reestablished CHILD_SA
would eventually get the requested reqid because the traffic selectors
explicitly don't have to match (to allow narrowing for CHILD_SAs based
on trap policies).

Closes strongswan/strongswan#1855


Trivial merge