]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Apply Otto's suggestion of reordering ancount/arcount 15640/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 13 Jun 2025 10:05:46 +0000 (12:05 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Jun 2025 10:05:46 +0000 (12:05 +0200)
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Remi Gacogne <github@coredump.fr>
pdns/dnsdistdist/dnsdist-self-answers.cc

index d18f563ff954a361a46660db04dab49c66f1a57e..123ebd8d76e0d15ccaa2b0e5d0588d1b44ae5bf6 100644 (file)
@@ -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();