0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Assign route bucket only to the last inserted node

This commit is contained in:
Igor Putovny 2023-10-06 13:50:05 +02:00
parent 3c87d99fe4
commit b003ffd348

View File

@ -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); struct trie_node *new = new_node(trie_slab);
new->parent = node; new->parent = node;
new->bucket = bucket;
node->child[bit] = new; node->child[bit] = new;
} }
node = node->child[bit]; node = node->child[bit];
} }
node->bucket = bucket;
} }
static struct aggregator_bucket * static struct aggregator_bucket *