From: Bart Polot Date: Thu, 5 Jan 2012 18:26:01 +0000 (+0000) Subject: - Assert callback as in other calls X-Git-Tag: initial-import-from-subversion-38251~15411 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c84257c7030b727a09ac92b295f404077969ad0c;p=oweals%2Fgnunet.git - Assert callback as in other calls --- diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index a715fec9d..a49af335b 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;