From: Igor Putovny Date: Wed, 22 Nov 2023 12:01:59 +0000 (+0100) Subject: Do not assign bucket of any prefix to the root node X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ef7e9ab3770d61b86d63fee1cfc1b3ec2e95fc3;p=thirdparty%2Fbird.git Do not assign bucket of any prefix to the root node --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index f520ae0c9..cf16613f3 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -143,9 +143,6 @@ trie_insert_prefix(const union net_addr_union *addr, struct trie_node * const ro const struct net_addr_ip4 * const ip4 = &addr->ip4; struct trie_node *node = root; - if (root->bucket == NULL) - root->bucket = bucket; - for (u32 i = 0; i < ip4->pxlen; i++) { u32 bit = (ip4->prefix.addr >> (31 - i)) & 1;