- Assert callback as in other calls
authorBart Polot <bart@net.in.tum.de>
Thu, 5 Jan 2012 18:26:01 +0000 (18:26 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 5 Jan 2012 18:26:01 +0000 (18:26 +0000)
src/dht/dht_api.c

index a715fec9dd51c8ff79b568b0dfb9115ebd331635..a49af335bd6b97889e9b288758479dcadca91df6 100644 (file)
@@ -968,6 +968,7 @@ GNUNET_DHT_monitor_start (struct GNUNET_DHT_Handle *handle,
   h = GNUNET_malloc (sizeof (struct GNUNET_DHT_MonitorHandle));
   GNUNET_CONTAINER_DLL_insert(handle->monitor_head, handle->monitor_tail, h);
 
+  GNUNET_assert (NULL != cb);
   h->cb = cb;
   h->cb_cls = cb_cls;
   h->type = type;