aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_lc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-21 13:29:22 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-21 13:29:22 +0000
commitef98e4c68e05e88ced677d66b9e5b57a382df70d (patch)
tree64f88544acb7180ba2ca639050059bbb01252e65 /src/fs/gnunet-service-fs_lc.c
parent8b23412a0e353778e83b370260e40d63a18c3927 (diff)
downloadgnunet-ef98e4c68e05e88ced677d66b9e5b57a382df70d.tar.gz
gnunet-ef98e4c68e05e88ced677d66b9e5b57a382df70d.zip
fix
Diffstat (limited to 'src/fs/gnunet-service-fs_lc.c')
-rw-r--r--src/fs/gnunet-service-fs_lc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_lc.c b/src/fs/gnunet-service-fs_lc.c
index 3908b8a55..58a1a0933 100644
--- a/src/fs/gnunet-service-fs_lc.c
+++ b/src/fs/gnunet-service-fs_lc.c
@@ -188,6 +188,7 @@ GSF_local_client_lookup_ (struct GNUNET_SERVER_Client *client)
188 * expiration. 188 * expiration.
189 * 189 *
190 * @param cls user-specified closure 190 * @param cls user-specified closure
191 * @param eval evaluation of the result
191 * @param pr handle to the original pending request 192 * @param pr handle to the original pending request
192 * @param expiration when does 'data' expire? 193 * @param expiration when does 'data' expire?
193 * @param type type of the block 194 * @param type type of the block
@@ -196,6 +197,7 @@ GSF_local_client_lookup_ (struct GNUNET_SERVER_Client *client)
196 */ 197 */
197static void 198static void
198client_response_handler (void *cls, 199client_response_handler (void *cls,
200 enum GNUNET_BLOCK_EvaluationResult eval,
199 struct GSF_PendingRequest *pr, 201 struct GSF_PendingRequest *pr,
200 struct GNUNET_TIME_Absolute expiration, 202 struct GNUNET_TIME_Absolute expiration,
201 enum GNUNET_BLOCK_Type type, 203 enum GNUNET_BLOCK_Type type,
@@ -242,6 +244,18 @@ client_response_handler (void *cls,
242 GNUNET_h2s (&prd->query), 244 GNUNET_h2s (&prd->query),
243 (unsigned int) prd->type); 245 (unsigned int) prd->type);
244#endif 246#endif
247 if (eval != GNUNET_BLOCK_EVALUATION_OK_LAST)
248 return;
249 GNUNET_CONTAINER_DLL_remove (lc->cr_head,
250 lc->cr_tail,
251 cr);
252 GSF_pending_request_cancel_ (cr->pr);
253 GNUNET_STATISTICS_update (GSF_stats,
254 gettext_noop ("# client searches active"),
255 - 1,
256 GNUNET_NO);
257 GNUNET_free (cr);
258
245} 259}
246 260
247 261