0
0
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:
Igor Putovny 2023-10-06 13:50:05 +02:00
parent 1712d83c01
commit 2d2354f54e

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