summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dht.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-08-29 17:54:45 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-08-29 17:54:45 +0200
commitd54f5b2b33d23a0ef9068df8da959caf19af08e2 (patch)
tree3f1b5602fc9e6b56c269c69ee2f73f5fc5463e9e /src/ipcpd/normal/dht.c
parent2fc3f5a58d0c161550050747dd18f96f0f96c694 (diff)
downloadouroboros-d54f5b2b33d23a0ef9068df8da959caf19af08e2.tar.gz
ouroboros-d54f5b2b33d23a0ef9068df8da959caf19af08e2.zip
ipcpd: Fix missing unlock in dht
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);
}