]> git.ipfire.org Git - thirdparty/strongswan.git/commit
ike-sa-manager: Prevent new IKE_SA from getting created when flush() is called
authorTobias Brunner <tobias@strongswan.org>
Fri, 26 Aug 2022 13:33:22 +0000 (15:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Sep 2022 08:04:06 +0000 (10:04 +0200)
commit6f456afe39a91e91c61e3218e4ea9faa19c1a4dd
tree8d785d6d3c34fa69e72da1374501af211c385b97
parent69995ed2c42be0dbb52a61b906ec63b9bbd1099f
ike-sa-manager: Prevent new IKE_SA from getting created when flush() is called

Without ability to create SPIs, other threads are prevented from creating
new IKE_SAs while we are flushing existing IKE_SAs.  However, there could
still be IKE_SAs already created that might get checked in while the
segments are temporarily unlocked to wait for threads to check existing
SAs in.
src/libcharon/sa/ike_sa_manager.c