gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r25899 - gnunet/src/dht
Date: Fri, 25 Jan 2013 14:40:41 +0100

Author: grothoff
Date: 2013-01-25 14:40:41 +0100 (Fri, 25 Jan 2013)
New Revision: 25899

Modified:
   gnunet/src/dht/dht_api.c
Log:
-allow disconnecting from DHT during GET iterator

Modified: gnunet/src/dht/dht_api.c
===================================================================
--- gnunet/src/dht/dht_api.c    2013-01-25 13:31:10 UTC (rev 25898)
+++ gnunet/src/dht/dht_api.c    2013-01-25 13:40:41 UTC (rev 25899)
@@ -642,7 +642,7 @@
  * @param key query of the request
  * @param value the 'struct GNUNET_DHT_RouteHandle' of a request matching the 
same key
  * @return GNUNET_YES to continue to iterate over all results,
- *         GNUNET_NO if the reply is malformed
+ *         GNUNET_NO if the reply is malformed or we found a matching request
  */
 static int
 process_reply (void *cls, const struct GNUNET_HashCode * key, void *value)
@@ -703,7 +703,7 @@
                     GNUNET_TIME_absolute_ntoh (dht_msg->expiration), key,
                     get_path, get_path_length, put_path, put_path_length,
                     ntohl (dht_msg->type), data_length, data);
-  return GNUNET_YES;
+  return GNUNET_NO;
 }
 
 /**




reply via email to

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