aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/threads/kernel_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/threads/kernel_interface.c')
-rw-r--r--src/charon/threads/kernel_interface.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/charon/threads/kernel_interface.c b/src/charon/threads/kernel_interface.c
index b09070390..796cd04a8 100644
--- a/src/charon/threads/kernel_interface.c
+++ b/src/charon/threads/kernel_interface.c
@@ -1009,11 +1009,8 @@ static status_t add_policy(private_kernel_interface_t *this,
if (!update)
{
current->refcount++;
- iterator->destroy(iterator);
- pthread_mutex_unlock(&this->pol_mutex);
this->logger->log(this->logger, CONTROL|LEVEL1,
"policy already exists, increasing refcount");
- return SUCCESS;
}
policy = current;
found = TRUE;