]> git.ipfire.org Git - thirdparty/bind9.git/commit
Do not re-add a node to the same prunenodes list
authorMichał Kępień <michal@isc.org>
Fri, 1 Mar 2024 17:12:37 +0000 (18:12 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 1 Mar 2024 17:12:37 +0000 (18:12 +0100)
commit4b6fc97af6f936616a12e733b14ffc450af6df87
treeaa33d6aeac0179a2a80d0f3038655085b34de3b0
parente368de1c92fd934ac0455d105b54a396c45ecc06
Do not re-add a node to the same prunenodes list

If a node cleaned up by prune_tree() happens to belong to the same node
bucket as its parent, the latter is directly appended to the prunenodes
list currently processed by prune_tree().  However, the relevant code
branch does not account for the fact that the parent might already be on
the list it is trying to append it to.  Fix by only calling
ISC_LIST_APPEND() for parent nodes not yet added to their relevant
prunenodes list.
lib/dns/rbtdb.c