mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-07 09:31:54 +00:00
Fix incorrect implementation of the third pass
This commit is contained in:
parent
b003ffd348
commit
67e6a3e351
@ -470,6 +470,7 @@ third_pass(struct trie_node *node)
|
|||||||
{
|
{
|
||||||
assert(node->potential_buckets_count > 0);
|
assert(node->potential_buckets_count > 0);
|
||||||
node->bucket = node->potential_buckets[0];
|
node->bucket = node->potential_buckets[0];
|
||||||
|
goto descent;
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct aggregator_bucket *inherited_bucket = get_ancestor_bucket(node);
|
const struct aggregator_bucket *inherited_bucket = get_ancestor_bucket(node);
|
||||||
@ -490,6 +491,7 @@ third_pass(struct trie_node *node)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Postorder traversal */
|
/* Postorder traversal */
|
||||||
|
descent:
|
||||||
third_pass(node->child[0]);
|
third_pass(node->child[0]);
|
||||||
third_pass(node->child[1]);
|
third_pass(node->child[1]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user