Tweak to logging.
authorSimon Kelley <simon@thekelleys.org.uk>
Mon, 3 Feb 2025 15:26:55 +0000 (15:26 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Mon, 3 Feb 2025 15:26:55 +0000 (15:26 +0000)
When a cached answer is too big, log

cached reply is truncated

and not

config reply is truncated

src/rfc1035.c

index adf906c..e92c00b 100644 (file)
@@ -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)