]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check the prunelink member of the correct node
authorMichał Kępień <michal@isc.org>
Sat, 2 Mar 2024 05:36:37 +0000 (06:36 +0100)
committerMichał Kępień <michal@isc.org>
Sat, 2 Mar 2024 05:37:53 +0000 (06:37 +0100)
commit0b59306166a819e2eba6dbf2c79105b232cbfd8c
tree2324deb22f45e734f603621e49b728d12144e7e6
parent0640429444e5bb981d1f457d359fb176121e6d14
Check the prunelink member of the correct node

Commit 37101c7c8abbacaf07c30d5094bc6880cf4f7ca0 checks the prunelink
member of the node that was just pruned, not its parent node that was
intended to be examined.  Fix by checking the prunelink member of the
parent node, so that adding the latter to its relevant prunenodes list
twice is properly guarded against.

(cherry picked from commit 7d9be24bb1e021560d58949d933274df53a2d69f)
lib/dns/rbtdb.c