Fixed coverity 10118
authorBart Polot <bart@net.in.tum.de>
Wed, 12 Oct 2011 14:48:50 +0000 (14:48 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 12 Oct 2011 14:48:50 +0000 (14:48 +0000)
src/mesh/gnunet-service-mesh.c

index c501c33f0308e2d0b4fe1df056976205e3130132..d0255a048af508ffec5eaa5cb886891b1d18cd70 100644 (file)
@@ -2873,7 +2873,8 @@ handle_local_tunnel_destroy (void *cls, struct GNUNET_SERVER_Client *client,
 
   /* Remove from global id hashmap */
   GNUNET_CRYPTO_hash (&t->id, sizeof (struct MESH_TunnelID), &hash);
-  GNUNET_CONTAINER_multihashmap_remove (tunnels, &hash, t);
+  GNUNET_break (GNUNET_YES == 
+      GNUNET_CONTAINER_multihashmap_remove (tunnels, &hash, t));
 
 //     notify_tunnel_destroy(t); FIXME
   tunnel_destroy(t);