summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/normal/dht.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c
index affec434..1e96c94a 100644
--- a/src/ipcpd/normal/dht.c
+++ b/src/ipcpd/normal/dht.c
@@ -2714,7 +2714,6 @@ static void handle_event(void * self,
struct dht * dht = (struct dht *) self;
if (event == NOTIFY_DT_CONN_ADD) {
- struct lookup * lu;
pthread_t thr;
struct join_info * info;
struct conn * c = (struct conn *) o;
@@ -2739,9 +2738,14 @@ static void handle_event(void * self,
pthread_detach(thr);
break;
case DHT_RUNNING:
- lu = kad_lookup(dht, dht->id, KAD_FIND_NODE);
- if (lu != NULL)
- lookup_destroy(lu);
+ /*
+ * FIXME: this lookup for effiency reasons
+ * causes a SEGV when stressed with rapid
+ * enrollments.
+ * lu = kad_lookup(dht, dht->id, KAD_FIND_NODE);
+ * if (lu != NULL)
+ * lookup_destroy(lu);
+ */
break;
default:
break;