summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-13 14:37:44 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-13 14:37:44 +0100
commit4bd01d03e323377bbbd7609e29d8179bcb682deb (patch)
tree328ad0d380b6d729de68f904223e6524278bbd58 /src/transport/gnunet-service-transport_neighbours.c
parent7c2ee1630fd348e1a0c1db6508cc5d2d16452acf (diff)
prevent assertion failure
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c8
1 files changed, 8 insertions, 0 deletions
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);