diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-06-08 13:58:33 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-07-06 09:43:46 +0200 |
commit | bd4f7dab759060b054c71a7fdb1c04e68b304fe3 (patch) | |
tree | 5648aaeb4b4147edb2df1917a6f24dcbf2e6dab5 /src | |
parent | 32fbad4ec22c7050357891a8ff7b3170c07f8850 (diff) | |
download | strongswan-bd4f7dab759060b054c71a7fdb1c04e68b304fe3.tar.bz2 strongswan-bd4f7dab759060b054c71a7fdb1c04e68b304fe3.tar.xz |
Properly unlock the policy if no change in the kernel is required.
Diffstat (limited to 'src')
-rw-r--r-- | src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c b/src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c index d3f3d1073..00ab3e93b 100644 --- a/src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c +++ b/src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c @@ -2074,6 +2074,7 @@ METHOD(kernel_ipsec_t, add_policy, status_t, if (!update) { /* we don't update the policy if the priority is lower than that of the * currently installed one */ + this->mutex->unlock(this->mutex); return SUCCESS; } |