0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-07 01:21:54 +00:00

Fix aggregator_bucket_unionize()

The last two while loops were incorrectly placed inside the first while loop
This commit is contained in:
Igor Putovny 2023-09-21 12:37:37 +02:00
parent b81e91bed6
commit aec8688fbc

View File

@ -323,6 +323,7 @@ aggregator_bucket_unionize(struct trie_node *node, const struct trie_node *left,
default: default:
bug("Impossible"); bug("Impossible");
} }
}
while (i < left->potential_buckets_count) while (i < left->potential_buckets_count)
{ {
@ -346,7 +347,6 @@ aggregator_bucket_unionize(struct trie_node *node, const struct trie_node *left,
j++; j++;
} }
} }
}
/* /*
* Check if sets of potential buckets of two nodes are disjoint * Check if sets of potential buckets of two nodes are disjoint