From: Christian Grothoff Date: Thu, 29 Sep 2011 21:53:01 +0000 (+0000) Subject: do not add 1 twice -- callee also added 1, resulting in an increment by 2 per hop X-Git-Tag: initial-import-from-subversion-38251~16868 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a4556b5a6718a48401c43d9873a8d732e7182881;p=oweals%2Fgnunet.git do not add 1 twice -- callee also added 1, resulting in an increment by 2 per hop --- diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index e31c17f48..965321fd3 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c @@ -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,