-check return value
authorChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 15:02:27 +0000 (15:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 15:02:27 +0000 (15:02 +0000)
src/transport/plugin_transport_unix.c

index 17d50a0c590b84cc6e2f252625a11e391f7bfcd6..c2f113b7cb5fc5d62667a18513451b4d5c4f1a23 100644 (file)
@@ -260,7 +260,8 @@ get_session_delete_it (void *cls, const GNUNET_HashCode * key, void *value)
 
   plugin->env->session_end (plugin->env->cls, &s->target, s);
 
-  GNUNET_CONTAINER_multihashmap_remove(plugin->session_map, &s->target.hashPubKey, s);
+  GNUNET_assert (GNUNET_YES ==
+                GNUNET_CONTAINER_multihashmap_remove(plugin->session_map, &s->target.hashPubKey, s));
 
   GNUNET_free (s);