From: Matthias Wachs Date: Wed, 20 Apr 2011 08:19:30 +0000 (+0000) Subject: SHUTDOWN X-Git-Tag: initial-import-from-subversion-38251~18644 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f0e645906f56614c79d78865dd12b22366fcdd4e;p=oweals%2Fgnunet.git SHUTDOWN --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 2451ef9e6..522dcf942 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -3659,7 +3659,7 @@ send_periodic_ping (void *cls, size_t tsize; peer_address->revalidate_task = GNUNET_SCHEDULER_NO_TASK; - if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) + if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) return; tp = peer_address->ready_list->plugin; neighbour = peer_address->ready_list->neighbour; @@ -4829,7 +4829,9 @@ disconnect_neighbour (struct NeighbourList *n, int check) peer_pos->revalidate_task = GNUNET_SCHEDULER_NO_TASK; } GNUNET_free(peer_pos->ressources); + peer_pos->ressources = NULL; GNUNET_free(peer_pos->quality); + peer_pos->ressources = NULL; GNUNET_free(peer_pos); } GNUNET_free (rpos);