commit 11b80a8098a5a83041fc03accd98a8d52f2e1f30
parent e99cd96fd96ae03da1f73c0355eea77cf44c8375
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 12 Mar 2022 22:25:40 +0100
-remove broken path trunction logic
Diffstat:
1 file changed, 0 insertions(+), 17 deletions(-)
diff --git 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,
/* if we got a HELLO, consider it for our own routing table */
hello_check (&bd);
- /* First, check if 'peer' is already on the path, and if
- so, truncate it instead of expanding. */
- for (unsigned int i = 0; i < get_path_length; i++)
- if (0 == GNUNET_memcmp (&get_path[i].pred,
- &peer->id))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Truncating path at %u/%u\n",
- i,
- get_path_length);
- GNUNET_break (process_reply_with_path (&bd,
- &prm->key,
- i,
- get_path));
- return;
- }
-
/* Need to append 'peer' to 'get_path' (normal case) */
{
struct GNUNET_DHT_PathElement xget_path[get_path_length + 1];