do not add 1 twice -- callee also added 1, resulting in an increment by 2 per hop
authorChristian Grothoff <christian@grothoff.org>
Thu, 29 Sep 2011 21:53:01 +0000 (21:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 29 Sep 2011 21:53:01 +0000 (21:53 +0000)
src/dht/gnunet-service-dht_neighbours.c

index e31c17f48556bf662f2a6cc3586af9fc2ab96ee8..965321fd36336c1baed41e0cd87213e2ac3b612d 100644 (file)
@@ -1586,7 +1586,7 @@ handle_dht_p2p_put (void *cls,
                               options,
                               ntohl (put->desired_replication_level),
                               GNUNET_TIME_absolute_ntoh (put->expiration_time),
-                              ntohl (put->hop_count) + 1 /* who adds +1? */,
+                              ntohl (put->hop_count),
                               bf,
                               &put->key,
                               putlen, pp,
@@ -1811,7 +1811,7 @@ handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer,
     GDS_NEIGHBOURS_handle_get (type,
                               options,
                               ntohl (get->desired_replication_level),
-                              ntohl (get->hop_count) + 1, /* CHECK: where (else) do we do +1? */
+                              ntohl (get->hop_count),
                               &get->key,
                               xquery, xquery_size,
                               reply_bf,