mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
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.
This commit is contained in:
parent
a0cde76958
commit
6138b8d629
@ -101,6 +101,7 @@ METHOD(listener_t, child_updown, bool,
|
||||
entry->remote->destroy_offset(entry->remote,
|
||||
offsetof(traffic_selector_t, destroy));
|
||||
free(entry);
|
||||
break;
|
||||
}
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user