diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-01-25 13:40:41 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-01-25 13:40:41 +0000 |
commit | b7da40f6ffef743ecff185f545da70bf30f67114 (patch) | |
tree | 2f59c9ff1657d4ec050960cb2c826406f9c03145 | |
parent | 7bde8bcb1d25a619056407c1ea3607e2de6312b0 (diff) |
-allow disconnecting from DHT during GET iterator
git-svn-id: https://gnunet.org/svn/gnunet@25899 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r-- | src/dht/dht_api.c | 4 |
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; } /** |