gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: permit NULL head


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: permit NULL head
Date: Fri, 24 Feb 2017 14:10:49 +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 27d00c1ba permit NULL head
27d00c1ba is described below

commit 27d00c1ba73232c8130fdf135a29d0e2551a0023
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Feb 24 14:12:03 2017 +0100

    permit NULL head
---
 src/cadet/gnunet-service-cadet-new_tunnels.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c 
b/src/cadet/gnunet-service-cadet-new_tunnels.c
index 05a1e071d..9d87f9e03 100644
--- a/src/cadet/gnunet-service-cadet-new_tunnels.c
+++ b/src/cadet/gnunet-service-cadet-new_tunnels.c
@@ -603,8 +603,11 @@ GCT_count_any_connections (const struct CadetTunnel *t)
 static struct CadetTConnection *
 get_ready_connection (struct CadetTunnel *t)
 {
-  GNUNET_assert (GNUNET_YES == t->connection_ready_head->is_ready);
-  return t->connection_ready_head;
+  struct CadetTConnection *hd = t->connection_ready_head;
+
+  GNUNET_assert ( (NULL == hd) ||
+                  (GNUNET_YES == hd->is_ready) );
+  return hd;
 }
 
 

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



reply via email to

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