Merge branch '4736-isc_r_hostdown-was-not-being-handled-by-resolver-c-9.18' into 'bind-9.18'
[9.18] Resolve "ISC_R_HOSTDOWN was not being handled by resolver.c" See merge request isc-projects/bind9!9088
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
6395. [bug] Handle ISC_R_HOSTDOWN and ISC_R_NETDOWN in resolver.c.
|
||||
[GL #4736]
|
||||
|
||||
6394. [bug] Named's -4 and -6 options now apply to zone primaries,
|
||||
also-notify and parental-agents. Report when a zone
|
||||
has these options configured but does not have an IPv4
|
||||
|
||||
+9
-1
@@ -1920,11 +1920,15 @@ resquery_senddone(isc_result_t eresult, isc_region_t *region, void *arg) {
|
||||
case ISC_R_SHUTTINGDOWN:
|
||||
break;
|
||||
|
||||
case ISC_R_HOSTDOWN:
|
||||
case ISC_R_HOSTUNREACH:
|
||||
case ISC_R_NETDOWN:
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_NOPERM:
|
||||
case ISC_R_ADDRNOTAVAIL:
|
||||
case ISC_R_CONNREFUSED:
|
||||
case ISC_R_CONNECTIONRESET:
|
||||
case ISC_R_TIMEDOUT:
|
||||
/* No route to remote. */
|
||||
FCTXTRACE3("query canceled in resquery_senddone(): "
|
||||
"no route to host; no response",
|
||||
@@ -2994,8 +2998,10 @@ resquery_connected(isc_result_t eresult, isc_region_t *region, void *arg) {
|
||||
fctx_done_detach(&fctx, eresult);
|
||||
break;
|
||||
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_HOSTDOWN:
|
||||
case ISC_R_HOSTUNREACH:
|
||||
case ISC_R_NETDOWN:
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_CONNREFUSED:
|
||||
case ISC_R_NOPERM:
|
||||
case ISC_R_ADDRNOTAVAIL:
|
||||
@@ -8175,7 +8181,9 @@ rctx_dispfail(respctx_t *rctx) {
|
||||
*/
|
||||
switch (rctx->result) {
|
||||
case ISC_R_EOF:
|
||||
case ISC_R_HOSTDOWN:
|
||||
case ISC_R_HOSTUNREACH:
|
||||
case ISC_R_NETDOWN:
|
||||
case ISC_R_NETUNREACH:
|
||||
case ISC_R_CONNREFUSED:
|
||||
case ISC_R_CONNECTIONRESET:
|
||||
|
||||
Reference in New Issue
Block a user