Merge branch '4596-check-the-prunelink-member-of-the-correct-node-9.16.49' into 'v9.16.49-release'

[9.16.49] Check the prunelink member of the correct node

See merge request isc-projects/bind9!8815
This commit is contained in:
Michał Kępień
2024-03-02 05:39:32 +00:00
+1 -1
View File
@@ -2318,7 +2318,7 @@ prune_tree(isc_task_t *task, isc_event_t *event) {
* prunenodes list we are currently processing (unless
* the parent is already on that list).
*/
if (!ISC_LINK_LINKED(node, prunelink)) {
if (!ISC_LINK_LINKED(parent, prunelink)) {
new_reference(rbtdb, parent,
isc_rwlocktype_write);
ISC_LIST_APPEND(rbtdb->prunenodes[locknum],