summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-08-29 15:55:55 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-08-29 15:55:55 +0000
commit706de5704f4d61929bbbb87d8d667ba68fcffc7d (patch)
tree3f1b5602fc9e6b56c269c69ee2f73f5fc5463e9e /src
parent2fc3f5a58d0c161550050747dd18f96f0f96c694 (diff)
parentd54f5b2b33d23a0ef9068df8da959caf19af08e2 (diff)
downloadouroboros-706de5704f4d61929bbbb87d8d667ba68fcffc7d.tar.gz
ouroboros-706de5704f4d61929bbbb87d8d667ba68fcffc7d.zip
Merged in dstaesse/ouroboros/be-dht-unlock (pull request #578)
ipcpd: Fix missing unlock in dht
Diffstat (limited to 'src')
-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);
}