]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle ISC_R_HOSTDOWN and ISC_R_NETDOWN in resolver.c
authorMark Andrews <marka@isc.org>
Tue, 21 May 2024 01:48:25 +0000 (11:48 +1000)
committerMark Andrews <marka@isc.org>
Mon, 3 Jun 2024 14:15:48 +0000 (00:15 +1000)
These error codes should be treated like other unreachable error
codes.

lib/dns/resolver.c

index fd5cc04be1c525d25b158945145ee394e666d1f3..1d899910b38fffb70004ec3d2312d471da15885e 100644 (file)
@@ -1752,7 +1752,9 @@ 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:
@@ -2829,8 +2831,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:
@@ -7756,7 +7760,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: