mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Assign route bucket only to the last inserted node
This commit is contained in:
parent
3c87d99fe4
commit
b003ffd348
@ -166,12 +166,13 @@ trie_insert_prefix(const union net_addr_union *addr, struct trie_node * const ro
|
||||
{
|
||||
struct trie_node *new = new_node(trie_slab);
|
||||
new->parent = node;
|
||||
new->bucket = bucket;
|
||||
node->child[bit] = new;
|
||||
}
|
||||
|
||||
node = node->child[bit];
|
||||
}
|
||||
|
||||
node->bucket = bucket;
|
||||
}
|
||||
|
||||
static struct aggregator_bucket *
|
||||
|
Loading…
Reference in New Issue
Block a user