]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix fix_iterator hang
authorMatthijs Mekking <matthijs@isc.org>
Tue, 19 Mar 2024 07:48:56 +0000 (08:48 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Mon, 25 Mar 2024 09:40:23 +0000 (10:40 +0100)
commit77d4bb9751b36811ea59e1d8bef61de3461765b6
tree2ac144c305a95a732f4b3e81ab535ea4bfecee19
parent2a724a808db8111365dcb54b1bd379d02cb135f1
Fix fix_iterator hang

If there are no more previous leaves, it means the queried name
precedes the entire range of names in the database, so we should just
move the iterator one step back and return, instead of continuing our
search for the predecessor.

This is similar to an earlier bug fixed in an earlier commit:

    ea9a8cb392ff59438a911485742b220d40f24d6f
lib/dns/qp.c