0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-05 16:41:53 +00:00

Fix incorrect implementation of the third pass

This commit is contained in:
Igor Putovny 2023-10-06 14:19:04 +02:00
parent b003ffd348
commit 67e6a3e351

View File

@ -470,6 +470,7 @@ third_pass(struct trie_node *node)
{
assert(node->potential_buckets_count > 0);
node->bucket = node->potential_buckets[0];
goto descent;
}
const struct aggregator_bucket *inherited_bucket = get_ancestor_bucket(node);
@ -490,6 +491,7 @@ third_pass(struct trie_node *node)
}
/* Postorder traversal */
descent:
third_pass(node->child[0]);
third_pass(node->child[1]);