assert
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:21:27 +0000 (20:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:21:27 +0000 (20:21 +0000)
src/transport/transport_api_new.c

index 70ca3119a3bb8afe2eda80cc441b2dc1a1ef47c0..4583cf8760c5c79af22b7c3028789370289f615b 100644 (file)
@@ -379,9 +379,10 @@ neighbour_delete (void *cls,
                   &n->id);
   GNUNET_assert (NULL == n->th);
   GNUNET_assert (NULL == n->hn);
-  GNUNET_CONTAINER_multihashmap_remove (handle->neighbours,
-                                       key,
-                                       n);
+  GNUNET_assert (GNUNET_YES ==
+                GNUNET_CONTAINER_multihashmap_remove (handle->neighbours,
+                                                      key,
+                                                      n));
   GNUNET_free (n);
   return GNUNET_YES;
 }