From: Igor Putovny Date: Fri, 6 Oct 2023 11:50:05 +0000 (+0200) Subject: Assign route bucket only to the last inserted node X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b003ffd348186a9d0411e0905ded8cb35a5ed12b;p=thirdparty%2Fbird.git Assign route bucket only to the last inserted node --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index ad89cc08e..5bd89a65c 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -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 *