aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-29 14:44:05 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-29 14:44:05 +0000
commit586bd0361d09b33d03291ad313a513c5c0c6e0f6 (patch)
tree204bea71f1352662c50aabe42e667e5c19b9e79c /src/dht/gnunet-service-dht.c
parent99cbab79fbe2b05956c78888d2b2092e0b0b6631 (diff)
downloadgnunet-586bd0361d09b33d03291ad313a513c5c0c6e0f6.tar.gz
gnunet-586bd0361d09b33d03291ad313a513c5c0c6e0f6.zip
greater or equal cutoff
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r--src/dht/gnunet-service-dht.c4
1 files 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
2904 other_bits = GNUNET_CRYPTO_hash_matching_bits(&pos->id.hashPubKey, target); 2904 other_bits = GNUNET_CRYPTO_hash_matching_bits(&pos->id.hashPubKey, target);
2905 if (other_bits > bits) 2905 if (other_bits > bits)
2906 return GNUNET_NO; 2906 return GNUNET_NO;
2907 else if (other_bits == bits) /* We match the same number of bits, do distance comparison */ 2907 else if (other_bits == bits) /* We match the same number of bits */
2908 { 2908 {
2909 if (strict_kademlia != GNUNET_YES) /* Return that we at as close as any other peer */ 2909 if (strict_kademlia != GNUNET_YES) /* Return that we at as close as any other peer */
2910 return GNUNET_YES; 2910 return GNUNET_YES;
@@ -2992,7 +2992,7 @@ converge_distance (const GNUNET_HashCode *target,
2992 * they are sorted.) 2992 * they are sorted.)
2993 */ 2993 */
2994 2994
2995 if (hops > converge_modifier) /* Past cutoff */ 2995 if (hops >= converge_modifier) /* Past cutoff */
2996 { 2996 {
2997 return ULLONG_MAX; 2997 return ULLONG_MAX;
2998 } 2998 }