aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/linked_list.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-06-08 18:27:48 +0200
committerTobias Brunner <tobias@strongswan.org>2011-07-06 09:43:46 +0200
commitc225f9b5585e1589d98a77b089924a8d4a70e216 (patch)
treed8edd82cdd75519935e88342a1c27c1941fa9064 /src/libstrongswan/utils/linked_list.c
parentbd4f7dab759060b054c71a7fdb1c04e68b304fe3 (diff)
downloadstrongswan-c225f9b5585e1589d98a77b089924a8d4a70e216.tar.bz2
strongswan-c225f9b5585e1589d98a77b089924a8d4a70e216.tar.xz
Keep the mutex locked as long as possible when deleting policies.
This change tries to prevent a race condition where a thread tries to install the same policy another thread is currently deleting. If the second thread releases the mutex in del_policy too early the first thread could assume the policy does not exist (as it is not cached anymore) but would not be able to actually install it if the second thread was not yet able to delete it.
Diffstat (limited to 'src/libstrongswan/utils/linked_list.c')
0 files changed, 0 insertions, 0 deletions