From: Nathan S. Evans Date: Mon, 29 Nov 2010 14:44:05 +0000 (+0000) Subject: greater or equal cutoff X-Git-Tag: initial-import-from-subversion-38251~19606 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=586bd0361d09b33d03291ad313a513c5c0c6e0f6;p=oweals%2Fgnunet.git greater or equal cutoff --- 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; }