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

This commit is contained in:
Tobias Brunner 2011-06-08 13:58:33 +02:00
parent 32fbad4ec2
commit bd4f7dab75
1 changed files with 1 additions and 0 deletions

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