diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-12 22:25:40 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-12 22:25:40 +0100 |
commit | 11b80a8098a5a83041fc03accd98a8d52f2e1f30 (patch) | |
tree | 66e485c335b07e795fa144493d1baf95b6b59e6b | |
parent | e99cd96fd96ae03da1f73c0355eea77cf44c8375 (diff) | |
download | gnunet-11b80a8098a5a83041fc03accd98a8d52f2e1f30.tar.gz gnunet-11b80a8098a5a83041fc03accd98a8d52f2e1f30.zip |
-remove broken path trunction logic
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 94513983e..9aea34354 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -2443,23 +2443,6 @@ handle_dht_p2p_result (void *cls, | |||
2443 | /* if we got a HELLO, consider it for our own routing table */ | 2443 | /* if we got a HELLO, consider it for our own routing table */ |
2444 | hello_check (&bd); | 2444 | hello_check (&bd); |
2445 | 2445 | ||
2446 | /* First, check if 'peer' is already on the path, and if | ||
2447 | so, truncate it instead of expanding. */ | ||
2448 | for (unsigned int i = 0; i < get_path_length; i++) | ||
2449 | if (0 == GNUNET_memcmp (&get_path[i].pred, | ||
2450 | &peer->id)) | ||
2451 | { | ||
2452 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2453 | "Truncating path at %u/%u\n", | ||
2454 | i, | ||
2455 | get_path_length); | ||
2456 | GNUNET_break (process_reply_with_path (&bd, | ||
2457 | &prm->key, | ||
2458 | i, | ||
2459 | get_path)); | ||
2460 | return; | ||
2461 | } | ||
2462 | |||
2463 | /* Need to append 'peer' to 'get_path' (normal case) */ | 2446 | /* Need to append 'peer' to 'get_path' (normal case) */ |
2464 | { | 2447 | { |
2465 | struct GNUNET_DHT_PathElement xget_path[get_path_length + 1]; | 2448 | struct GNUNET_DHT_PathElement xget_path[get_path_length + 1]; |