fix for mantis 1897
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 16 Nov 2011 15:18:58 +0000 (15:18 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 16 Nov 2011 15:18:58 +0000 (15:18 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 67eb9f39b8e7065c877dde1fd0746291ee9630f7..3a58887343e67a9ce0e3d142373f9ccf95ed7d2d 100644 (file)
@@ -654,10 +654,13 @@ transmit_send_continuation (void *cls,
 {
   struct MessageQueue *mq;
   struct NeighbourMapEntry *n;
+  struct NeighbourMapEntry *tmp;
+
+  tmp = lookup_neighbour(receiver);
 
   mq = cls;
   n = mq->n;
-  if (NULL != n)
+  if ((NULL != n) && (tmp != NULL) && (tmp == n))
   {
     GNUNET_assert (n->is_active == mq);
     n->is_active = NULL;