]> 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>
Tue, 4 Jun 2024 07:38:40 +0000 (07:38 +0000)
These error codes should be treated like other unreachable error
codes.

(cherry picked from commit 180b1e79398a7120929c413c7c0392ae15ccf69c)

lib/dns/resolver.c

index 60cac293cb1667601668e18c2222bc6da30bdb83..4fe2d908f616b9de6dc4e57de1e777f385228a99 100644 (file)
@@ -1920,7 +1920,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:
@@ -2994,8 +2996,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 +8179,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: