diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-24 14:12:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-24 14:12:03 +0100 |
commit | 27d00c1ba73232c8130fdf135a29d0e2551a0023 (patch) | |
tree | cdd84b0163fac3589bae0482c0a96c13e5b500c6 /src/cadet | |
parent | 0f67fd7bc65b07feceff790fb18e7e8a0aaeac69 (diff) | |
download | gnunet-27d00c1ba73232c8130fdf135a29d0e2551a0023.tar.gz gnunet-27d00c1ba73232c8130fdf135a29d0e2551a0023.zip |
permit NULL head
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_tunnels.c | 7 |
1 files 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) | |||
603 | static struct CadetTConnection * | 603 | static struct CadetTConnection * |
604 | get_ready_connection (struct CadetTunnel *t) | 604 | get_ready_connection (struct CadetTunnel *t) |
605 | { | 605 | { |
606 | GNUNET_assert (GNUNET_YES == t->connection_ready_head->is_ready); | 606 | struct CadetTConnection *hd = t->connection_ready_head; |
607 | return t->connection_ready_head; | 607 | |
608 | GNUNET_assert ( (NULL == hd) || | ||
609 | (GNUNET_YES == hd->is_ready) ); | ||
610 | return hd; | ||
608 | } | 611 | } |
609 | 612 | ||
610 | 613 | ||