]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
our ringbuffers got fed packetcached delegation responses as 'queries for domains...
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 19 Feb 2019 22:37:30 +0000 (23:37 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 19 Feb 2019 22:38:43 +0000 (23:38 +0100)
pdns/responsestats-auth.cc

index 2112dce2a6cc58a996f7c6cc2aaf98a483de18df..6187180efebb70b0c346a64e2744723f6974b85d 100644 (file)
@@ -25,7 +25,7 @@ void ResponseStats::submitResponse(DNSPacket &p, bool udpOrTCP) {
   if(p.d.aa) {
     if (p.d.rcode==RCode::NXDomain)
       S.ringAccount("nxdomain-queries",p.qdomain.toLogString()+"/"+p.qtype.getName());
-  } else if (p.isEmpty()) {
+  } else if (p.d.rcode == RCode::Refused) {
     S.ringAccount("unauth-queries",p.qdomain.toLogString()+"/"+p.qtype.getName());
     S.ringAccount("remotes-unauth",p.d_remote);
   }