prevent assertion failure
authorChristian Grothoff <christian@grothoff.org>
Sat, 13 Jan 2018 13:37:44 +0000 (14:37 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 13 Jan 2018 13:37:44 +0000 (14:37 +0100)
src/transport/gnunet-service-transport_neighbours.c

index e6e4de0f5c3345284804a0afcf1e454a872b0b89..e124f166749c4cf42fb8c588cf7308d1d49088f1 100644 (file)
@@ -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);