From: David Barksdale Date: Sun, 9 Oct 2011 02:56:16 +0000 (+0000) Subject: Fix NULL dereference. X-Git-Tag: initial-import-from-subversion-38251~16700 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9565c4b88a244db6726e56d1c48e8501d8c057f4;p=oweals%2Fgnunet.git Fix NULL dereference. Does this need to be a call to transmit_send_continuation? --- diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 8a588223f..c4d880d0a 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -470,7 +470,8 @@ disconnect_neighbour (struct NeighbourMapEntry *n) while (NULL != (mq = n->messages_head)) { GNUNET_CONTAINER_DLL_remove (n->messages_head, n->messages_tail, mq); - mq->cont (mq->cont_cls, GNUNET_SYSERR); + if (NULL != mq->cont) + mq->cont (mq->cont_cls, GNUNET_SYSERR); GNUNET_free (mq); } if (NULL != n->is_active)