diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-12-18 15:50:08 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-12-18 15:59:29 +0100 |
commit | 0080daa78789bb7012bc0f80dd6b4ff0d47e41a3 (patch) | |
tree | d0903a2daad39d9354b21dc95a5344b761ec5693 /testing/scripts/build-baseimage | |
parent | 6a8eeba5403d4b6005c3a50951046260811c079a (diff) | |
download | strongswan-0080daa78789bb7012bc0f80dd6b4ff0d47e41a3.tar.bz2 strongswan-0080daa78789bb7012bc0f80dd6b4ff0d47e41a3.tar.xz |
Fix deadlock in IMC/IMV managers
Since reserve_id() might be called from e.g. notify_connection_change()
using a write lock will not work as this can't be acquired while holding
the read lock.
Also, with the previous code it was possible that two IMCs/IMVs added by
two threads at the same time would get the same ID assigned.
Diffstat (limited to 'testing/scripts/build-baseimage')
0 files changed, 0 insertions, 0 deletions