]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Process also the ISC_R_CANCELED result code in rpz_rewrite()
authorAram Sargsyan <aram@isc.org>
Thu, 11 Jul 2024 09:30:53 +0000 (09:30 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 19 Aug 2024 11:45:44 +0000 (11:45 +0000)
Log  canceled queries (e.g. when shutting down a hung fetch)
in DEBUG3 level instead of DEBUG1 which is used for the
"unrecognized" result codes.

(cherry picked from commit 8bb9568467500cb80329972c92b1d53b9f9d0672)

lib/ns/query.c

index 5549e202df5bd8710766abd1661a685deb313124..58a9d436fc48e55dab98c1ee5a0c03ca6bb51821 100644 (file)
@@ -4147,6 +4147,7 @@ rpz_rewrite(ns_client_t *client, dns_rdatatype_t qtype, isc_result_t qresult,
                break;
        case ISC_R_FAILURE:
        case ISC_R_TIMEDOUT:
+       case ISC_R_CANCELED:
        case DNS_R_BROKENCHAIN:
                rpz_log_fail(client, DNS_RPZ_DEBUG_LEVEL3, NULL,
                             DNS_RPZ_TYPE_QNAME,