]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
allow OPT pseudo record type in IXFR query 1659/head
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 10 Aug 2014 19:23:03 +0000 (21:23 +0200)
committermind04 <mind04@monshouwer.org>
Sun, 10 Aug 2014 19:23:03 +0000 (21:23 +0200)
pdns/tcpreceiver.cc

index d96f541101cbe16f48847ad7540a5090fcf86e47..b1b687e13d746887fa6483758c964573adb340d8 100644 (file)
@@ -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;