mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-16 21:38:52 -04:00
Check the prunelink member of the correct node
Commit37101c7c8achecks 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 commit7d9be24bb1)
This commit is contained in:
parent
0640429444
commit
0b59306166
1 changed files with 1 additions and 1 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Reference in a new issue