aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-25 16:46:16 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-25 16:46:16 +0000
commit430f7e1eb5676a35072fa9766dd4cfe90a4bc249 (patch)
tree8eb460000cca311381266b8e01ed9c60d08dfed7 /src
parent737cce7212018574e79596736f0dc9f452dedae7 (diff)
downloadgnunet-430f7e1eb5676a35072fa9766dd4cfe90a4bc249.tar.gz
gnunet-430f7e1eb5676a35072fa9766dd4cfe90a4bc249.zip
-fix 2034, request can be cancelled in which case rh might be NULL here
Diffstat (limited to 'src')
-rw-r--r--src/fs/gnunet-service-fs_pr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c
index 5ebca1ad7..dcaba1203 100644
--- a/src/fs/gnunet-service-fs_pr.c
+++ b/src/fs/gnunet-service-fs_pr.c
@@ -358,9 +358,10 @@ GSF_pending_request_create_ (enum GSF_PendingRequestOptions options,
358 GNUNET_assert (dpr != NULL); 358 GNUNET_assert (dpr != NULL);
359 if (pr == dpr) 359 if (pr == dpr)
360 break; /* let the request live briefly... */ 360 break; /* let the request live briefly... */
361 dpr->rh (dpr->rh_cls, GNUNET_BLOCK_EVALUATION_REQUEST_VALID, dpr, 361 if (NULL != dpr->rh)
362 UINT32_MAX, GNUNET_TIME_UNIT_FOREVER_ABS, GNUNET_BLOCK_TYPE_ANY, 362 dpr->rh (dpr->rh_cls, GNUNET_BLOCK_EVALUATION_REQUEST_VALID, dpr,
363 NULL, 0); 363 UINT32_MAX, GNUNET_TIME_UNIT_FOREVER_ABS, GNUNET_BLOCK_TYPE_ANY,
364 NULL, 0);
364 GSF_pending_request_cancel_ (dpr, GNUNET_YES); 365 GSF_pending_request_cancel_ (dpr, GNUNET_YES);
365 } 366 }
366 } 367 }