add assertion that we do not release path that is still used by a connection
authorChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2017 09:24:57 +0000 (10:24 +0100)
committerChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2017 09:24:57 +0000 (10:24 +0100)
src/cadet/gnunet-service-cadet-new_paths.c

index 7635dccf9cb94b366ec23c41a060943d45d7db79..bf1626670c978b75aa1af7d2fcfe89c957f260f4 100644 (file)
@@ -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);