From 2850662595ec7d25aaaf9674e987449375960c23 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 5 Jun 2011 13:06:35 +0000 Subject: [PATCH] fix --- src/transport/transport_api_new.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/transport/transport_api_new.c b/src/transport/transport_api_new.c index 8136e6fb4..6d508f0f8 100644 --- a/src/transport/transport_api_new.c +++ b/src/transport/transport_api_new.c @@ -373,8 +373,9 @@ neighbour_delete (void *cls, struct GNUNET_TRANSPORT_Handle *handle = cls; struct Neighbour *n = value; - handle->nd_cb (handle->cls, - &n->id); + if (NULL != handle->nd_cb) + handle->nd_cb (handle->cls, + &n->id); GNUNET_assert (NULL == n->th); GNUNET_assert (NULL == n->hn); GNUNET_CONTAINER_multihashmap_remove (handle->neighbours, -- 2.25.1