summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/normal/dht.c')
-rw-r--r--src/ipcpd/normal/dht.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c
index a1d21ad7..f24ed932 100644
--- a/src/ipcpd/normal/dht.c
+++ b/src/ipcpd/normal/dht.c
@@ -851,7 +851,8 @@ static void lookup_set_state(struct lookup * lu,
static void cleanup_wait(void * o)
{
struct lookup * lu = (struct lookup *) o;
- lookup_set_state(lu, LU_NULL);
+ lu->state = LU_NULL;
+ pthread_mutex_unlock(&lu->lock);
lookup_destroy(lu);
}