assert
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:15:38 +0000 (20:15 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:15:38 +0000 (20:15 +0000)
src/fs/gnunet-service-fs_pe.c

index 6c4d3df17e7fd709c8bc7e83e8376398b24f8943..e45585db6ae39e8adaa3a4ce3bc6cd12b6f09b1a 100644 (file)
@@ -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)