From e7b6929291bc646bd82602705b3690baf9251c77 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 16 Jul 2011 20:15:38 +0000 Subject: [PATCH] assert --- src/fs/gnunet-service-fs_pe.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -- 2.25.1