kernel-netlink: Unlock mutex in del_policy() if mark can't be added to message

This commit is contained in:
Tobias Brunner 2015-07-31 11:20:24 +02:00
parent 36bc52b441
commit 1ce32c9cdc
1 changed files with 1 additions and 0 deletions

View 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;
}