]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
we attempted to store string versions of addresses in comboaddress based ringbuffer...
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jan 2015 12:02:35 +0000 (13:02 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jan 2015 12:02:35 +0000 (13:02 +0100)
pdns/packethandler.cc

index 05a8f00ce8e4c63509ac6a08bbff2b6dd63267c1..e6441b0d2efa5bb34e2be9b1d1836121ac2f1371 100644 (file)
@@ -1005,7 +1005,7 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
   if(p->d.qr) { // QR bit from dns packet (thanks RA from N)
     L<<Logger::Error<<"Received an answer (non-query) packet from "<<p->getRemote()<<", dropping"<<endl;
     S.inc("corrupt-packets");
-    S.ringAccount("remotes-corrupt", p->getRemote());
+    S.ringAccount("remotes-corrupt", p->d_remote);
     return 0;
   }
 
@@ -1037,7 +1037,7 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
       if(d_logDNSDetails)
         L<<Logger::Error<<"Received a malformed qdomain from "<<p->getRemote()<<", '"<<p->qdomain<<"': sending servfail"<<endl;
       S.inc("corrupt-packets");
-      S.ringAccount("remotes-corrupt", p->getRemote());
+      S.ringAccount("remotes-corrupt", p->d_remote);
       S.inc("servfail-packets");
       r->setRcode(RCode::ServFail);
       return r;