Properly unlock the policy if no change in the kernel is required.
This commit is contained in:
parent
32fbad4ec2
commit
bd4f7dab75
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue