]> git.ipfire.org Git - thirdparty/bind9.git/commit
dig +nssearch: send more queries even if sending the previous one fails
authorAram Sargsyan <aram@isc.org>
Tue, 21 Jun 2022 11:54:50 +0000 (11:54 +0000)
committerAram Sargsyan <aram@isc.org>
Fri, 22 Jul 2022 09:41:41 +0000 (09:41 +0000)
commit8fecc9dc1ec32b2259dc760dfeedce38c68d4cd1
tree392126466cc73a01ad8955f3e9f296392a157b94
parent5d47d4e34290f8b8b182c45ac4f407220656801b
dig +nssearch: send more queries even if sending the previous one fails

In the NSSEARCH followup lookup, when one of the queries fails to be
sent, DiG doesn't start the next query. This is a mistake, because in
NSSEARCH mode the queries are independent and DiG shouldn't stop the
lookup process just because sending a query to one of the name servers
returns an error code.

Restructure the `send_done()` function to unconditionally send the next
query in NSSEARCH mode, if it exists.

(cherry picked from commit 49ac879dfad91ac08201be3e351450fd9d83b9f5)
bin/dig/dighost.c