diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2018-01-23 10:30:11 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-01-23 10:30:11 +0100 |
commit | 0091e229c288bfd580f36fbc9e6224a0e38f860e (patch) | |
tree | 971ce369d82f8b8496d1f0998c754632d2b2578d /src | |
parent | 95822cf8ac73e3f6526b4b10623f66d5d82d37c7 (diff) | |
parent | 33e88c2bae0aa76ee23056429abe9514160a3c95 (diff) | |
download | ouroboros-0091e229c288bfd580f36fbc9e6224a0e38f860e.tar.gz ouroboros-0091e229c288bfd580f36fbc9e6224a0e38f860e.zip |
Merge branch 'testing' into be
Diffstat (limited to 'src')
-rw-r--r-- | src/ipcpd/normal/dht.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index 7e91d7ad..a59b7781 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -1669,11 +1669,8 @@ static struct lookup * kad_lookup(struct dht * dht, switch (state) { case LU_UPDATE: lookup_new_addrs(lu, addrs); - if (addrs[0] == 0) { - lookup_detach(dht, lu); - lookup_set_state(lu, LU_COMPLETE); - return lu; - } + if (addrs[0] == 0) + break; out = kad_find(dht, id, addrs, code); lookup_add_out(lu, out); |