at least compiling fix
[oweals/gnunet.git] / 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);