]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Check consistency of the whole trie after every recalculation
authorIgor Putovny <igor.putovny@nic.cz>
Thu, 27 Feb 2025 15:24:02 +0000 (16:24 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Thu, 27 Feb 2025 15:24:02 +0000 (16:24 +0100)
proto/aggregator/trie.c

index 2626923ceb7bcb12b6533466c6bfa760f503f116..9ef8cbde670dff3f923113bbef0c0ddaac33a7b5 100644 (file)
@@ -977,7 +977,7 @@ aggregator_update_prefix(struct aggregator_proto *p, struct aggregator_route *ol
   ASSERT_DIE(highest_node != NULL);
   aggregator_third_pass(p, highest_node);
 
-  check_trie_after_aggregation(highest_node);
+  check_trie_after_aggregation(p->root);
 }
 
 /*
@@ -1019,7 +1019,7 @@ aggregator_withdraw_prefix(struct aggregator_proto *p, struct aggregator_route *
   ASSERT_DIE(highest_node != NULL);
   aggregator_third_pass(p, highest_node);
 
-  check_trie_after_aggregation(highest_node);
+  check_trie_after_aggregation(p->root);
 }
 
 static void