mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-23 01:40:23 -05:00
In the NSSEARCH followup lookup, when one of the queries fails to be set up (UDP) or connected (TCP), 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 setting up (or connecting to) one of the name servers returns an error code in the `udp_ready()` or `tcp_connected()` callbacks. Write a new `nssearch_next()` function which takes care of starting the next query in NSSEARCH mode, so it can be used in several places without code repetition. Make sure that the `udp_ready()` and `tcp_connected()` functions call `nssearch_next()` in case they won't be calling `send_udp()` and `send_tcp()` respectively, because in that case the `send_done()` callback, which usually does the job, won't be called. Refactor `send_done()` to use the newly written `nssearch_next()` function. |
||
|---|---|---|
| .. | ||
| check | ||
| confgen | ||
| delv | ||
| dig | ||
| dnssec | ||
| named | ||
| nsupdate | ||
| plugins | ||
| rndc | ||
| tests | ||
| tools | ||
| Makefile.am | ||