aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-01-25 13:40:41 +0000
committerChristian Grothoff <christian@grothoff.org>2013-01-25 13:40:41 +0000
commit27bc9bc00c38d9ae347599d05aa6fffd9db8f34e (patch)
tree2f59c9ff1657d4ec050960cb2c826406f9c03145 /src/dht/dht_api.c
parentd5613dec791f437441a351973b283196b278763d (diff)
-allow disconnecting from DHT during GET iterator
Diffstat (limited to 'src/dht/dht_api.c')
-rw-r--r--src/dht/dht_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c
index 0e709a83ff..e40e702ee3 100644
--- a/src/dht/dht_api.c
+++ b/src/dht/dht_api.c
@@ -642,7 +642,7 @@ transmit_pending (void *cls, size_t size, void *buf)
* @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 @@ process_reply (void *cls, const struct GNUNET_HashCode * key, void *value)
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;
}
/**