From 4bd01d03e323377bbbd7609e29d8179bcb682deb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 13 Jan 2018 14:37:44 +0100 Subject: [PATCH] prevent assertion failure --- src/transport/gnunet-service-transport_neighbours.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index e6e4de0f5..e124f1667 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -1407,6 +1407,14 @@ try_transmission_to_peer (struct NeighbourMapEntry *n) } if (NULL == mq) return; /* no more messages */ + if (NULL == n->primary_address.address) + { + /* transmit_send_continuation() caused us to drop session, + can't try transmission anymore. */ + return; + } + + GNUNET_CONTAINER_DLL_remove (n->messages_head, n->messages_tail, mq); -- 2.25.1