]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Do not assign bucket of any prefix to the root node
authorIgor Putovny <igor.putovny@nic.cz>
Wed, 22 Nov 2023 12:01:59 +0000 (13:01 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Wed, 22 Nov 2023 12:01:59 +0000 (13:01 +0100)
proto/aggregator/aggregator.c

index f520ae0c950d5ede25779d2aacf1e85ad26ec09b..cf16613f338c2a1382a2e443867776f0763b261c 100644 (file)
@@ -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;