From: Christian Grothoff Date: Sun, 5 Jun 2011 13:06:35 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~18330 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2850662595ec7d25aaaf9674e987449375960c23;p=oweals%2Fgnunet.git fix --- 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,