From: Christian Grothoff Date: Sat, 16 Jul 2011 20:15:38 +0000 (+0000) Subject: assert X-Git-Tag: initial-import-from-subversion-38251~17799 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7b6929291bc646bd82602705b3690baf9251c77;p=oweals%2Fgnunet.git assert --- diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index 6c4d3df17..e45585db6 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c @@ -389,9 +389,10 @@ GSF_plan_notify_peer_disconnect_ (const struct GSF_ConnectedPeer *cp) &id.hashPubKey); if (NULL == pp) return; /* nothing was ever planned for this peer */ - GNUNET_CONTAINER_multihashmap_remove (plans, - &id.hashPubKey, - pp); + GNUNET_assert (GNUNET_OK == + GNUNET_CONTAINER_multihashmap_remove (plans, + &id.hashPubKey, + pp)); if (NULL != pp->pth) GSF_peer_transmit_cancel_ (pp->pth); if (GNUNET_SCHEDULER_NO_TASK != pp->task)