Fix coverity #10232
authorBart Polot <bart@net.in.tum.de>
Mon, 31 Oct 2011 22:39:43 +0000 (22:39 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 31 Oct 2011 22:39:43 +0000 (22:39 +0000)
src/mesh/gnunet-service-mesh.c

index 6608b49dc8e305cdac2a3354a33f40142285c2ea..9939e1683132e3e2a4dcdfc518387b08bc441fee 100644 (file)
@@ -1838,11 +1838,11 @@ tunnel_add_peer (struct MeshTunnel *t, struct MeshPeerInfo *peer)
   {
     t->peers_total++;
     GNUNET_array_append (peer->tunnels, peer->ntunnels, t);
-    GNUNET_CONTAINER_multihashmap_put(
+    GNUNET_assert (GNUNET_OK == GNUNET_CONTAINER_multihashmap_put(
       t->peers,
       &id.hashPubKey,
       peer,
-      GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST);
+      GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
   }
 
   if (NULL != (p = peer->path_head))