gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: path heap could be null her


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: path heap could be null here during shutdown
Date: Wed, 01 Feb 2017 16:44:00 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 8a702188b path heap could be null here during shutdown
8a702188b is described below

commit 8a702188b788fce7d8842fa9dca0612028512dea
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 1 16:44:13 2017 +0100

    path heap could be null here during shutdown
---
 src/cadet/gnunet-service-cadet-new_peer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]