]> git.ipfire.org Git - thirdparty/bird.git/commit
Bugfix
authorIgor Putovny <igor.putovny@nic.cz>
Wed, 13 Dec 2023 10:16:12 +0000 (11:16 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Thu, 30 May 2024 10:30:00 +0000 (12:30 +0200)
commit79981d2ad2c356116578c509176b817ac7ab88d9
tree251ffddce9b55f266df49194c5bbcb1c4b1b709c
parent22060fe09f69fb44de2d3adb03e39b7098e0b69c
Bugfix

Due to wrong cast of void pointer, pointers to potential buckets
were compared and eventually sorted in wrong order, thus assigning
wrong buckets to trie nodes.
This caused some trie nodes to stay in trie even though they should
have been removed. Consequently, trie contained superfluos prefixes
after the algorithm finished.

Since pointers were never dereferenced, only compared by their numeric
values in the comparator function, program did not crash (even though
pointers could be NULL because of the incorrect cast to double pointer
and single dereference).
proto/aggregator/aggregator.c