- fixing double free mantis 0002363
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 16 May 2012 15:38:06 +0000 (15:38 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 16 May 2012 15:38:06 +0000 (15:38 +0000)
src/transport/gnunet-service-transport_neighbours.c

index c1138fbb844186c1bcadcb325d6cb16a15a6d1db..59f03d6748ac5e1ba589df3b6287c7f92550f7e1 100644 (file)
@@ -3093,6 +3093,7 @@ disconnect_all_neighbours (void *cls, const GNUNET_HashCode * key, void *value)
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
              "Disconnecting peer `%4s', %s\n",
               GNUNET_i2s (&n->id), "SHUTDOWN_TASK");
+  n->state = S_DISCONNECT_FINISHED;
   free_neighbour (n);
   return GNUNET_OK;
 }