From: Christian Grothoff Date: Tue, 21 Feb 2012 21:46:12 +0000 (+0000) Subject: -fixing #2155 X-Git-Tag: initial-import-from-subversion-38251~14757 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ae1c89f0c4268b34c86fea0b66ec10afe069d71;p=oweals%2Fgnunet.git -fixing #2155 --- diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 760b62bc2..741ca1917 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -1679,10 +1679,11 @@ reconstruct_cb (void *cls, const struct ContentHashKey *chk, uint64_t offset, /* block matches, hence tree below matches; * this request is done! */ dr->state = BRS_DOWNLOAD_UP; - GNUNET_assert (GNUNET_YES == - GNUNET_CONTAINER_multihashmap_remove (dc->active, &dr->chk.query, dr)); + GNUNET_break (GNUNET_NO == + GNUNET_CONTAINER_multihashmap_remove (dc->active, &dr->chk.query, dr)); if (GNUNET_YES == dr->is_pending) { + GNUNET_break (0); /* how did we get here? */ GNUNET_CONTAINER_DLL_remove (dc->pending_head, dc->pending_tail, dr); dr->is_pending = GNUNET_NO; }