diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-03-22 14:22:19 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-03-23 14:02:23 +0100 |
commit | 958c0e8e5c3108a9b58618dae69352ce40424485 (patch) | |
tree | bfe48ccca52e6c3df90cf39fbf1af340e3b98db8 /testing/tests/libipsec/net2net-null/hosts/moon/etc | |
parent | 90a7a68488e25e59b4b3cbccd189ed66b5804894 (diff) | |
download | strongswan-958c0e8e5c3108a9b58618dae69352ce40424485.tar.bz2 strongswan-958c0e8e5c3108a9b58618dae69352ce40424485.tar.xz |
ike-sa-manager: Avoid memory leak if IKE_SAs get checked in after flush() was called
A thread might check out a new IKE_SA via checkout_new() or
checkout_by_config() and start initiating it while the daemon is
terminating and the IKE_SA manager is flushed by the main thread.
That SA is not tracked yet so the main thread is not waiting for it and
the other thread is able to check it in and creating an entry after flush()
already terminated causing a memory leak.
Fixes #1348.
Diffstat (limited to 'testing/tests/libipsec/net2net-null/hosts/moon/etc')
0 files changed, 0 insertions, 0 deletions