-assert
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:18:08 +0000 (10:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:18:08 +0000 (10:18 +0000)
src/vpn/gnunet-service-vpn.c

index 3d05e2cd221bc2f5b093abe72552444da88ffd6e..4db343f6ade3063b62ae14c99a6ef278df658789 100644 (file)
@@ -839,6 +839,7 @@ expire_tunnel (struct TunnelState *except)
   struct TunnelState *ts;
 
   ts = GNUNET_CONTAINER_heap_peek (tunnel_heap);
+  GNUNET_assert (NULL != ts);
   if (except == ts)
     return; /* can't do this */
   free_tunnel_state (ts);
@@ -2436,6 +2437,7 @@ expire_destination (struct DestinationEntry *except)
   struct DestinationEntry *de;
 
   de = GNUNET_CONTAINER_heap_peek (destination_heap);
+  GNUNET_assert (NULL != de);
   if (except == de)
     return; /* can't do this */
   free_destination_entry (de);