aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
/**