aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dht/dht_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c
index a715fec9dd..a49af335bd 100644
--- a/src/dht/dht_api.c
+++ b/src/dht/dht_api.c
@@ -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;