-fixig #2377
authorChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 17:45:31 +0000 (17:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 17:45:31 +0000 (17:45 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 8dd3190f7badce86d6e1d1c12107a2c03f2de4cb..9fe8b39530e50e0971206fc54beda336827cc031 100644 (file)
@@ -1125,13 +1125,8 @@ transmit_send_continuation (void *cls,
   struct MessageQueue *mq = cls;
   struct NeighbourMapEntry *n;
 
-  n = lookup_neighbour (receiver);
-  if (NULL == n)
-  {
-    GNUNET_break (0);
-    return;
-  }
-
+  if (NULL == (n = lookup_neighbour (receiver)))
+    return; /* disconnect or other error while transmitting, can happen */
   if (n->is_active == mq)
   {
     /* this is still "our" neighbour, remove us from its queue