{
ir = GNUNET_CONTAINER_multihashmap_get (ifm,
&ii->file_id);
- GNUNET_assert (NULL != ii);
+ GNUNET_assert (NULL != ir);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
_
("Index request received for file `%s' is already indexed as `%s'. Permitting anyway.\n"),
odb = (const struct OnDemandBlock *) data;
off = GNUNET_ntohll (odb->offset);
ii = GNUNET_CONTAINER_multihashmap_get (ifm, &odb->file_id);
+ if (NULL == ii)
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
fn = ii->filename;
if ((NULL == fn) || (0 != ACCESS (fn, R_OK)))
{