aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c3
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)