From 586bd0361d09b33d03291ad313a513c5c0c6e0f6 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 29 Nov 2010 14:44:05 +0000 Subject: [PATCH] greater or equal cutoff --- src/dht/gnunet-service-dht.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 2746d75b8..795363192 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c @@ -2904,7 +2904,7 @@ am_closest_peer (const GNUNET_HashCode * target, struct GNUNET_CONTAINER_BloomFi other_bits = GNUNET_CRYPTO_hash_matching_bits(&pos->id.hashPubKey, target); if (other_bits > bits) return GNUNET_NO; - else if (other_bits == bits) /* We match the same number of bits, do distance comparison */ + else if (other_bits == bits) /* We match the same number of bits */ { if (strict_kademlia != GNUNET_YES) /* Return that we at as close as any other peer */ return GNUNET_YES; @@ -2992,7 +2992,7 @@ converge_distance (const GNUNET_HashCode *target, * they are sorted.) */ - if (hops > converge_modifier) /* Past cutoff */ + if (hops >= converge_modifier) /* Past cutoff */ { return ULLONG_MAX; } -- 2.25.1