kernel-netlink: Unlock mutex in del_policy() if mark can't be added to message
authorTobias Brunner <tobias@strongswan.org>
Fri, 31 Jul 2015 09:20:24 +0000 (11:20 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 31 Jul 2015 09:20:24 +0000 (11:20 +0200)
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c

index a6cf977..e0f1dd7 100644 (file)
@@ -2562,6 +2562,7 @@ METHOD(kernel_ipsec_t, del_policy, status_t,
 
        if (!add_mark(hdr, sizeof(request), mark))
        {
+               this->mutex->unlock(this->mutex);
                return FAILED;
        }