summaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_dht.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-02 03:37:42 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-02 03:37:42 +0000
commit341704937b8b07b415376f8f0bd13bbc7d26d44c (patch)
treeba9be1884b709e99aa481d54c62238ac7d0138c4 /src/cadet/gnunet-service-cadet_dht.c
parent7df0c2bc1d40a7d98d590dc796f5b429455a23a7 (diff)
Fixed usage of known broken paths. If a connection was destroyed
while handling a neighbor disconnection, cadet tried to reconnect to peers using paths containing the disconnecting peer.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_dht.c')
-rw-r--r--src/cadet/gnunet-service-cadet_dht.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c
index cdc1f5a7f..e4ae52da3 100644
--- a/src/cadet/gnunet-service-cadet_dht.c
+++ b/src/cadet/gnunet-service-cadet_dht.c
@@ -187,6 +187,7 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp,
s = path_2s (p);
LOG (GNUNET_ERROR_TYPE_INFO, "Got path from DHT: %s\n", s);
GNUNET_free_non_null (s);
+
peer = GCP_get_short (p->peers[p->length - 1], GNUNET_YES);
LOG (GNUNET_ERROR_TYPE_DEBUG, "Got HELLO for %s\n", GCP_2s (peer));
h->callback (h->cls, p);