]> git.ipfire.org Git - thirdparty/bind9.git/commit
In dbiterator_prev, dereference_iter_node was being called too soon
authorMark Andrews <marka@isc.org>
Fri, 5 Dec 2025 03:25:02 +0000 (14:25 +1100)
committerAndoni Duarte Pintado <andoni@isc.org>
Tue, 9 Dec 2025 10:43:37 +0000 (11:43 +0100)
commiteaa587ca309d38e5c65019ad02301a78398fe8b4
tree725d20d7bd356ccb471b4f757e3d8f65032cb179
parent43cf27d0c219b74cbd39c2b95f7ba2b681310e4a
In dbiterator_prev, dereference_iter_node was being called too soon

dns_rbtnodechain_prev requires the current node to still be valid
which was not always the case after dereference_iter_node was called.
Move the call to dereference_iter_node to after the dns_rbtnodechain_prev
to preserve the node.

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