assert
[oweals/gnunet.git] / src / transport / plugin_transport_http.c
index f85af629346cf059bdc3d1045d21f416a18da0e1..93001beec2b7d48fcdcacbda11a1d52ba7688b57 100644 (file)
@@ -664,7 +664,10 @@ remove_peer_context_Iterator (void *cls,
              "Freeing context for peer `%s'\n",
              GNUNET_i2s(&pc->identity));
 #endif
-  GNUNET_CONTAINER_multihashmap_remove (plugin->peers, &pc->identity.hashPubKey, pc);
+  GNUNET_assert (GNUNET_YES ==
+                GNUNET_CONTAINER_multihashmap_remove (plugin->peers, 
+                                                      &pc->identity.hashPubKey, 
+                                                      pc));
   while (ps!=NULL)
     {
       plugin->env->session_end(plugin, &pc->identity, ps);