From 2353771253cd93bddef332533637f49d576413ab Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Thu, 11 Jul 2024 09:30:53 +0000 Subject: [PATCH] Process also the ISC_R_CANCELED result code in rpz_rewrite() 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ns/query.c b/lib/ns/query.c index 01b24dcdfa..75a87ca211 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -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,