From d2028e4cea956791152a41b12b2907178f40caa9 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 6 Feb 2018 17:42:40 +0100 Subject: ipcpd: Handle LU_DONE state in DHT The DHT would enter an infinite loop in lookup_wait() because the LU_DONE state was not handled correctly. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/normal/dht.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index 103ffd1c..9296130a 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -1675,6 +1675,7 @@ static struct lookup * kad_lookup(struct dht * dht, out = kad_find(dht, id, addrs, code); lookup_add_out(lu, out); break; + case LU_DONE: case LU_DESTROY: lookup_detach(dht, lu); lookup_set_state(lu, LU_NULL); -- cgit v1.2.3