check return vals
authorChristian Grothoff <christian@grothoff.org>
Mon, 24 Oct 2011 13:23:57 +0000 (13:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 24 Oct 2011 13:23:57 +0000 (13:23 +0000)
src/mesh/gnunet-service-mesh.c

index 19650dcb653a80e062be7472f88a934333504b0e..7cdc56e792e73fd36f2726bc3047b81118491cd9 100644 (file)
@@ -1284,7 +1284,8 @@ peer_info_destroy (struct MeshPeerInfo *pi)
   GNUNET_PEER_change_rc (pi->id, -1);
   GNUNET_CRYPTO_hash (&id, sizeof (struct GNUNET_PeerIdentity), &hash);
 
-  GNUNET_CONTAINER_multihashmap_remove (peers, &hash, pi);
+  GNUNET_assert (GNUENT_YES ==
+                GNUNET_CONTAINER_multihashmap_remove (peers, &hash, pi));
   if (NULL != pi->dhtget)
   {
     GNUNET_DHT_get_stop(pi->dhtget);