]> 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 10:15:01 +0000 (10:15 +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.

lib/ns/query.c

index 01b24dcdfa4f532b57b3523069d2e277655ad06e..75a87ca2119fa5df416edbe8f11fe0b5746197da 100644 (file)
@@ -4244,6 +4244,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,