diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2011-10-09 02:56:16 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2011-10-09 02:56:16 +0000 |
commit | 9565c4b88a244db6726e56d1c48e8501d8c057f4 (patch) | |
tree | 718dd9a5e775825cb2284a7a757968dd1ba21405 /src/transport | |
parent | 23f103db87f8567814a1ec9ebdbb090e881ea32d (diff) | |
download | gnunet-9565c4b88a244db6726e56d1c48e8501d8c057f4.tar.gz gnunet-9565c4b88a244db6726e56d1c48e8501d8c057f4.zip |
Fix NULL dereference.
Does this need to be a call to transmit_send_continuation?
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
470 | while (NULL != (mq = n->messages_head)) | 470 | while (NULL != (mq = n->messages_head)) |
471 | { | 471 | { |
472 | GNUNET_CONTAINER_DLL_remove (n->messages_head, n->messages_tail, mq); | 472 | GNUNET_CONTAINER_DLL_remove (n->messages_head, n->messages_tail, mq); |
473 | mq->cont (mq->cont_cls, GNUNET_SYSERR); | 473 | if (NULL != mq->cont) |
474 | mq->cont (mq->cont_cls, GNUNET_SYSERR); | ||
474 | GNUNET_free (mq); | 475 | GNUNET_free (mq); |
475 | } | 476 | } |
476 | if (NULL != n->is_active) | 477 | if (NULL != n->is_active) |