]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check for invalid protocol when dispatch fails
authorEvan Hunt <each@isc.org>
Wed, 5 Apr 2023 21:05:46 +0000 (14:05 -0700)
committerOndřej Surý <ondrej@isc.org>
Fri, 21 Apr 2023 10:42:11 +0000 (12:42 +0200)
treat ISC_R_INVALIDPROTO as a networking error when it occurs.

lib/dns/resolver.c

index e472c6e78eadfc10312a97105ffb9d8d45d34b9e..2564f09de08c6e1b0ac86acb992b6ae5be72d3e5 100644 (file)
@@ -7791,6 +7791,7 @@ rctx_dispfail(respctx_t *rctx) {
        case ISC_R_NETUNREACH:
        case ISC_R_CONNREFUSED:
        case ISC_R_CONNECTIONRESET:
+       case ISC_R_INVALIDPROTO:
        case ISC_R_CANCELED:
        case ISC_R_SHUTTINGDOWN:
                rctx->broken_server = rctx->result;