farp: Only remove one tracked entry
authorTobias Brunner <tobias@strongswan.org>
Thu, 6 Jul 2017 12:14:06 +0000 (14:14 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 27 Jul 2017 11:07:23 +0000 (13:07 +0200)
commit6138b8d629dbc1cb47eb9ee8a69c2b22589b0f77
treeb644db38f55605c450a917e2cf22170a1c12df27
parenta0cde76958e49f9a65b8951ac6c4311c1fed82e1
farp: Only remove one tracked entry

Multiple CHILD_SAs sharing the same traffic selectors (e.g. during
make-before-break reauthentication) also have the same reqid assigned.
If all matching entries are removed we could end up without entry even
though an SA exists that still uses these traffic selectors.

Fixes #2373.
src/libcharon/plugins/farp/farp_listener.c