From: David Barksdale Date: Thu, 30 Sep 2010 21:58:54 +0000 (+0000) Subject: Fix NULL pointer check. X-Git-Tag: initial-import-from-subversion-38251~20230 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c729a7182ee1360b773588b8a45abad69ea5b54a;p=oweals%2Fgnunet.git Fix NULL pointer check. --- diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 1eea40bb7..02f69fcad 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -1135,7 +1135,7 @@ neighbour_disconnect (struct NeighbourList *n) #endif GNUNET_break (n->is_connected == GNUNET_YES); n->is_connected = GNUNET_NO; - if (h->nc_cb != NULL) + if (h->nd_cb != NULL) h->nd_cb (h->cls, &n->id); if (n->transmit_stage == TS_NEW) neighbour_free (n);