gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r17120 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r17120 - gnunet/src/dht
Date: Thu, 29 Sep 2011 23:53:01 +0200

Author: grothoff
Date: 2011-09-29 23:53:01 +0200 (Thu, 29 Sep 2011)
New Revision: 17120

Modified:
   gnunet/src/dht/gnunet-service-dht_neighbours.c
Log:
do not add 1 twice -- callee also added 1, resulting in an increment by 2 per 
hop

Modified: gnunet/src/dht/gnunet-service-dht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht_neighbours.c      2011-09-29 21:42:52 UTC 
(rev 17119)
+++ gnunet/src/dht/gnunet-service-dht_neighbours.c      2011-09-29 21:53:01 UTC 
(rev 17120)
@@ -1586,7 +1586,7 @@
                               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 @@
     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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]