From 1f84cde024f979e9d8c3a72e46fc3d4ecd557c61 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Mon, 3 Feb 2025 15:26:55 +0000 Subject: [PATCH] Tweak to logging. When a cached answer is too big, log cached reply is truncated and not config reply is truncated --- src/rfc1035.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rfc1035.c b/src/rfc1035.c index adf906c..e92c00b 100644 --- a/src/rfc1035.c +++ b/src/rfc1035.c @@ -2364,7 +2364,7 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen, if (!(ansp = skip_questions(header, qlen))) return 0; /* bad packet */ anscount = nscount = addncount = 0; - log_query(F_CONFIG, "reply", NULL, "truncated", 0); + log_query(0, "reply", NULL, "truncated", 0); } if (nxdomain) -- 2.20.1