From 043e4a49181172a448dcb8a6bd1d0b59d79dcee2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 16 Feb 2017 14:42:35 +0100 Subject: [PATCH] extra asserts --- src/cadet/gnunet-service-cadet-new_paths.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cadet/gnunet-service-cadet-new_paths.c b/src/cadet/gnunet-service-cadet-new_paths.c index 90cd5ab7b..c6121a133 100644 --- a/src/cadet/gnunet-service-cadet-new_paths.c +++ b/src/cadet/gnunet-service-cadet-new_paths.c @@ -153,6 +153,7 @@ GCPP_add_connection (struct CadetPeerPath *path, GNUNET_assert (off < path->entries_length); entry = path->entries[off]; GNUNET_assert (NULL == entry->cc); + GNUNET_assert (NULL != cc); entry->cc = cc; } @@ -433,6 +434,7 @@ extend_path (struct CadetPeerPath *path, force); if (NULL != path->hn) break; + GNUNET_assert (NULL == entry->cc); GCP_path_entry_remove (entry->peer, entry, old_len + i); -- 2.25.1