]> 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>
Tue, 14 Jan 2020 07:35:37 +0000 (08:35 +0100)
commit4db29f1f7d8544d22d8181d4789d4975eb1dca06
tree0ed6b27fa254d0462a5f9d67c835af9e7a8eaa1c
parent17945a1d03799ff5c2a9e7d4eae9ef2a352ba702
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.

(cherry picked from commit 176b23b6cd98e5b58f832902fdbe964ee5f762d0)
lib/dns/rbtdb.c