]> git.ipfire.org Git - thirdparty/bind9.git/commit
Testing node->down requires the tree lock to be held.
authorMark Andrews <marka@isc.org>
Wed, 4 Dec 2019 10:41:04 +0000 (21:41 +1100)
committerOndřej Surý <ondrej@isc.org>
Mon, 9 Dec 2019 17:43:54 +0000 (17:43 +0000)
commit176b23b6cd98e5b58f832902fdbe964ee5f762d0
tree00c2e549b5c3593e8d86478ad5da8dc63ade9636
parent23e29b17db3327646b5254322bece11313c4333c
Testing node->down requires the tree lock to be held.

In decrement_reference only test node->down if the tree lock
is held.  As node->down is not always tested in
decrement_reference we need to test that it is non NULL in
cleanup_dead_nodes prior to removing the node from the rbt
tree.  Additionally it is not always possible to aquire the
node lock and reactivate a node when adding parent nodes.
Reactivate such nodes in cleanup_dead_nodes if required.
lib/dns/rbtdb.c