diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2013-11-07 09:50:12 +0100 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2013-11-21 11:12:59 +0100 |
| commit | bb492d80b55b9f8c1761beb5c93978298cf19f84 (patch) | |
| tree | a296795861358cdb8add82184da2c57103a900e6 /src/libcharon/plugins/sql/sqlite.sql | |
| parent | 906a4fd16b91a44d8222522d9a2a3589e478a393 (diff) | |
| download | strongswan-bb492d80b55b9f8c1761beb5c93978298cf19f84.tar.bz2 strongswan-bb492d80b55b9f8c1761beb5c93978298cf19f84.tar.xz | |
trap-manager: Prevent deadlock when installing trap policies
Because the write lock was held while calling add_policies() on
child_sa_t, which finishes with a call to child_state_change() on bus_t,
a deadlock would ensue if CHILD_SAs are concurrently being established,
which also causes a call to child_state_change() that will require
the read lock in trap_manager_t.
No locks are now being held while creating the CHILD_SA and installing the
trap policies.
Diffstat (limited to 'src/libcharon/plugins/sql/sqlite.sql')
0 files changed, 0 insertions, 0 deletions
