]> 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:26:25 +0000 (09:26 +0000)
commit98da5129a5b19f1d07c245fe9f85fedc36788aaf
tree0803f7bc943df14144a92d6b2b18c0bc86612b79
parent25f8570709373ad953db7bc591bde788cc36c33b
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.
bin/dig/dighost.c