Properly unlock the policy if no change in the kernel is required.
authorTobias Brunner <tobias@strongswan.org>
Wed, 8 Jun 2011 11:58:33 +0000 (13:58 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 6 Jul 2011 07:43:46 +0000 (09:43 +0200)
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c

index d3f3d10..00ab3e9 100644 (file)
@@ -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;
        }