Properly unlock the policy if no change in the kernel is required.

This commit is contained in:
Tobias Brunner
2011-07-06 09:43:46 +02:00
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;
}