-check NULL
authorChristian Grothoff <christian@grothoff.org>
Tue, 17 Jan 2012 16:06:56 +0000 (16:06 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 17 Jan 2012 16:06:56 +0000 (16:06 +0000)
src/mesh/mesh_api.c

index cebbd7518a48b771851b312b2978f5b831d5e9bd..eda2c0db50ca940da23522d760aaf827a131daba 100644 (file)
@@ -1479,6 +1479,7 @@ GNUNET_MESH_notify_transmit_ready (struct GNUNET_MESH_Tunnel *tunnel, int cork,
   uint32_t least_priority;
   size_t overhead;
 
+  GNUNET_assert (NULL != tunnel);
 #if MESH_API_DEBUG
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "mesh: mesh notify transmit ready called\n");