]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Use `uint8_t` for rcodes, not `uint16_t`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 12 Jun 2025 08:22:06 +0000 (10:22 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 12 Jun 2025 08:22:06 +0000 (10:22 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-self-answers.cc
pdns/dnsdistdist/dnsdist-self-answers.hh

index 6fd868b1c61a8324374c15294696e371c2f8a4d0..d18f563ff954a361a46660db04dab49c66f1a57e 100644 (file)
@@ -240,7 +240,7 @@ bool generateAnswerFromRawPacket(DNSQuestion& dnsQuestion, const PacketBuffer& p
   return true;
 }
 
-bool removeRecordsAndSetRCode(DNSQuestion& dnsQuestion, uint16_t rcode)
+bool removeRecordsAndSetRCode(DNSQuestion& dnsQuestion, uint8_t rcode)
 {
   bool dnssecOK = false;
   bool hadEDNS = false;
index ddcfbb4154d3af440f3b9d0171749448e262f9c7..2d6ea6238f14ff22678c8dc9bc19e43c1613d4ad 100644 (file)
@@ -29,5 +29,5 @@ bool generateAnswerFromCNAME(DNSQuestion& dnsQuestion, const DNSName& cname, con
 bool generateAnswerFromIPAddresses(DNSQuestion& dnsQuestion, const std::vector<ComboAddress>& addresses, const ResponseConfig& responseConfig);
 bool generateAnswerFromRDataEntries(DNSQuestion& dnsQuestion, const std::vector<std::string>& entries, std::optional<uint16_t> typeForAny, const ResponseConfig& responseConfig);
 bool generateAnswerFromRawPacket(DNSQuestion& dnsQuestion, const PacketBuffer& packet);
-bool removeRecordsAndSetRCode(DNSQuestion& dnsQuestion, uint16_t rcode);
+bool removeRecordsAndSetRCode(DNSQuestion& dnsQuestion, uint8_t rcode);
 }