extra asserts
authorChristian Grothoff <christian@grothoff.org>
Thu, 16 Feb 2017 13:42:35 +0000 (14:42 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 16 Feb 2017 13:42:35 +0000 (14:42 +0100)
src/cadet/gnunet-service-cadet-new_paths.c

index 90cd5ab7b9e9ef59c3d3ce2ed220f7e29f876b3e..c6121a13363999aaaddcfdd1f01191f884425d93 100644 (file)
@@ -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);