mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Assign route bucket only to the last inserted node
This commit is contained in:
parent
1712d83c01
commit
2d2354f54e
@ -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