Permalink
Browse files

allow OPT pseudo record type in IXFR query

  • Loading branch information...
1 parent c96290a commit 3e67ea8b0c4a8cd7ba82fdb933264ba6305ac98a @mind04 mind04 committed with mind04 Aug 10, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/tcpreceiver.cc
View
@@ -963,8 +963,8 @@ int TCPNameserver::doIXFR(shared_ptr<DNSPacket> q, int outsock)
sendPacket(outpacket,outsock);
return 0;
}
- } else if (rr->d_type != QType::TSIG) {
- L<<Logger::Error<<"Additional records in IXFR query"<<endl;
+ } else if (rr->d_type != QType::TSIG && rr->d_type != QType::OPT) {
+ L<<Logger::Error<<"Additional records in IXFR query, type: "<<QType(rr->d_type).getName()<<endl;
outpacket->setRcode(RCode::FormErr);
sendPacket(outpacket,outsock);
return 0;

0 comments on commit 3e67ea8

Please sign in to comment.