From fc9aaa8bce69413e9d6426b1221e419bd58a7e63 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 Feb 2017 10:24:57 +0100 Subject: [PATCH] add assertion that we do not release path that is still used by a connection --- src/cadet/gnunet-service-cadet-new_paths.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cadet/gnunet-service-cadet-new_paths.c b/src/cadet/gnunet-service-cadet-new_paths.c index 7635dccf9..bf1626670 100644 --- a/src/cadet/gnunet-service-cadet-new_paths.c +++ b/src/cadet/gnunet-service-cadet-new_paths.c @@ -238,6 +238,7 @@ GCPP_release (struct CadetPeerPath *path) while (1) { /* cut 'off' end of path */ + GNUNET_assert (NULL == entry->cc); GCP_path_entry_remove (entry->peer, entry, path->entries_length - 1); -- 2.25.1