From: Christian Grothoff Date: Mon, 13 Feb 2017 09:24:57 +0000 (+0100) Subject: add assertion that we do not release path that is still used by a connection X-Git-Tag: taler-0.2.1~184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc9aaa8bce69413e9d6426b1221e419bd58a7e63;p=oweals%2Fgnunet.git add assertion that we do not release path that is still used by a connection --- 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);