From: Igor Putovny Date: Thu, 27 Feb 2025 15:24:02 +0000 (+0100) Subject: Check consistency of the whole trie after every recalculation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a19f59e3d5c344fec0ab7ac4454c9af6713f0e7;p=thirdparty%2Fbird.git Check consistency of the whole trie after every recalculation --- diff --git a/proto/aggregator/trie.c b/proto/aggregator/trie.c index 2626923ce..9ef8cbde6 100644 --- a/proto/aggregator/trie.c +++ b/proto/aggregator/trie.c @@ -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