0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +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 9954b24f57
commit 26ac6dca5c

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