From: Christian Grothoff Date: Sat, 13 Jan 2018 13:37:44 +0000 (+0100) Subject: prevent assertion failure X-Git-Tag: v0.11.0pre66~249^2~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4bd01d03e323377bbbd7609e29d8179bcb682deb;p=oweals%2Fgnunet.git prevent assertion failure --- 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);