aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet-new_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_peer.c')
-rw-r--r--src/cadet/gnunet-service-cadet-new_peer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_peer.c b/src/cadet/gnunet-service-cadet-new_peer.c
index 070a0ac15..136ab8297 100644
--- a/src/cadet/gnunet-service-cadet-new_peer.c
+++ b/src/cadet/gnunet-service-cadet-new_peer.c
@@ -913,6 +913,7 @@ GCP_attach_path (struct CadetPeer *cp,
913 GNUNET_CONTAINER_HeapCostType root_desirability; 913 GNUNET_CONTAINER_HeapCostType root_desirability;
914 struct GNUNET_CONTAINER_HeapNode *hn; 914 struct GNUNET_CONTAINER_HeapNode *hn;
915 915
916 GNUNET_assert (off == GCPP_get_length (path) - 1);
916 GNUNET_assert (cp == GCPP_get_peer_at_offset (path, 917 GNUNET_assert (cp == GCPP_get_peer_at_offset (path,
917 off)); 918 off));
918 if (NULL == cp->path_heap) 919 if (NULL == cp->path_heap)
@@ -972,7 +973,7 @@ GCP_attach_path (struct CadetPeer *cp,
972 GCPP_get_length (root) - 1)) ) 973 GCPP_get_length (root) - 1)) )
973 { 974 {
974 /* Got plenty of paths to this destination, and this is a low-quality 975 /* Got plenty of paths to this destination, and this is a low-quality
975 one that we don't care, allow it to die. */ 976 one that we don't care about. Allow it to die. */
976 GNUNET_assert (root == 977 GNUNET_assert (root ==
977 GNUNET_CONTAINER_heap_remove_root (cp->path_heap)); 978 GNUNET_CONTAINER_heap_remove_root (cp->path_heap));
978 GCPP_release (root); 979 GCPP_release (root);