diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-25 07:19:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-25 07:19:02 +0000 |
commit | 41bb40709d0177ec77aee6aaa05eabaa589de2a3 (patch) | |
tree | d2d47a57f4b8260618a602f7e5af390f12075eae /src/fs/gnunet-service-fs_indexing.c | |
parent | a50d02eb13b2e9885aa8451fe11eeab9ac2126a6 (diff) | |
download | gnunet-41bb40709d0177ec77aee6aaa05eabaa589de2a3.tar.gz gnunet-41bb40709d0177ec77aee6aaa05eabaa589de2a3.zip |
-fi
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.c')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index 545b6d771..1baab4c67 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -231,7 +231,7 @@ signal_index_ok (struct IndexInfo *ii) | |||
231 | { | 231 | { |
232 | ir = GNUNET_CONTAINER_multihashmap_get (ifm, | 232 | ir = GNUNET_CONTAINER_multihashmap_get (ifm, |
233 | &ii->file_id); | 233 | &ii->file_id); |
234 | GNUNET_assert (NULL != ii); | 234 | GNUNET_assert (NULL != ir); |
235 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 235 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
236 | _ | 236 | _ |
237 | ("Index request received for file `%s' is already indexed as `%s'. Permitting anyway.\n"), | 237 | ("Index request received for file `%s' is already indexed as `%s'. Permitting anyway.\n"), |
@@ -529,6 +529,11 @@ GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode * key, uint32_t s | |||
529 | odb = (const struct OnDemandBlock *) data; | 529 | odb = (const struct OnDemandBlock *) data; |
530 | off = GNUNET_ntohll (odb->offset); | 530 | off = GNUNET_ntohll (odb->offset); |
531 | ii = GNUNET_CONTAINER_multihashmap_get (ifm, &odb->file_id); | 531 | ii = GNUNET_CONTAINER_multihashmap_get (ifm, &odb->file_id); |
532 | if (NULL == ii) | ||
533 | { | ||
534 | GNUNET_break (0); | ||
535 | return GNUNET_SYSERR; | ||
536 | } | ||
532 | fn = ii->filename; | 537 | fn = ii->filename; |
533 | if ((NULL == fn) || (0 != ACCESS (fn, R_OK))) | 538 | if ((NULL == fn) || (0 != ACCESS (fn, R_OK))) |
534 | { | 539 | { |