Permalink
Browse files

don't log out-of-zone ents during AXFR in

  • Loading branch information...
1 parent ec0ded7 commit 6a65ae9a7ef6b2291433ae81db410ed8e9efa661 @mind04 mind04 committed with mind04 Oct 13, 2015
Showing with 2 additions and 1 deletion.
  1. +2 −1 pdns/tcpreceiver.cc
View
@@ -700,7 +700,8 @@ int TCPNameserver::doAXFR(const string &target, shared_ptr<DNSPacket> q, int out
}
rrs.push_back(rr);
} else {
- L<<Logger::Warning<<"Zone '"<<target<<"' contains out-of-zone data '"<<rr.qname<<"'|"<<rr.qtype.getName()<<"', ignoring"<<endl;
+ if (rr.qtype.getCode())
+ L<<Logger::Warning<<"Zone '"<<target<<"' contains out-of-zone data '"<<rr.qname<<"|"<<rr.qtype.getName()<<"', ignoring"<<endl;
continue;
}
}

0 comments on commit 6a65ae9

Please sign in to comment.