From be0bcaed7f25ae10d6857ec77e95be972dd52038 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 13 Jun 2025 12:05:46 +0200 Subject: [PATCH] dnsdist: Apply Otto's suggestion of reordering ancount/arcount Co-authored-by: Otto Moerbeek Signed-off-by: Remi Gacogne --- pdns/dnsdistdist/dnsdist-self-answers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/dnsdist-self-answers.cc b/pdns/dnsdistdist/dnsdist-self-answers.cc index d18f563ff9..123ebd8d76 100644 --- a/pdns/dnsdistdist/dnsdist-self-answers.cc +++ b/pdns/dnsdistdist/dnsdist-self-answers.cc @@ -253,9 +253,9 @@ bool removeRecordsAndSetRCode(DNSQuestion& dnsQuestion, uint8_t rcode) header.rcode = rcode; header.qr = true; header.qdcount = htons(1); - header.arcount = 0; - header.nscount = 0; header.ancount = 0; + header.nscount = 0; + header.arcount = 0; return true; }); auto qnameWireLength = dnsQuestion.ids.qname.wirelength(); -- 2.47.2