From: Christian Grothoff Date: Wed, 1 Feb 2017 15:44:13 +0000 (+0100) Subject: path heap could be null here during shutdown X-Git-Tag: taler-0.2.1~207 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8a702188b788fce7d8842fa9dca0612028512dea;p=oweals%2Fgnunet.git path heap could be null here during shutdown --- diff --git a/src/cadet/gnunet-service-cadet-new_peer.c b/src/cadet/gnunet-service-cadet-new_peer.c index a5c05dd9c..070a0ac15 100644 --- a/src/cadet/gnunet-service-cadet-new_peer.c +++ b/src/cadet/gnunet-service-cadet-new_peer.c @@ -488,7 +488,8 @@ consider_peer_destroy (struct CadetPeer *cp) return; /* still relevant! */ if (0 != GNUNET_CONTAINER_multishortmap_size (cp->connections)) return; /* still relevant! */ - if (0 < GNUNET_CONTAINER_heap_get_size (cp->path_heap)) + if ( (NULL != cp->path_heap) && + (0 < GNUNET_CONTAINER_heap_get_size (cp->path_heap)) ) { cp->destroy_task = GNUNET_SCHEDULER_add_delayed (IDLE_PATH_TIMEOUT, &drop_paths,