From: Matthias Wachs Date: Wed, 16 May 2012 15:38:06 +0000 (+0000) Subject: - fixing double free mantis 0002363 X-Git-Tag: initial-import-from-subversion-38251~13453 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51d7a05119e7ecda47b2e971cb3e555b49c47a88;p=oweals%2Fgnunet.git - fixing double free mantis 0002363 --- diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index c1138fbb8..59f03d674 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -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; }