Parcourir la source

fixed rcode for the authors.bind response (nxdomain to noerror)

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@227 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya il y a 15 ans
Parent
commit
0be9ea5067
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      src/bin/parkinglot/main.cc

+ 1 - 3
src/bin/parkinglot/main.cc

@@ -125,9 +125,7 @@ process_message(int s) {
             msg.addRR(SECTION_AUTHORITY, RR(authors_name, RRClass::CH,
                                             RRType::NS, TTL(0),
                                             NS("authors.bind")));
-        }
-
-        if (zones.contains(name)) {
+        } else if (zones.contains(name)) {
             msg.setRcode(Message::RCODE_NOERROR);
             RRset* nsset = new RRset(query->getName(), RRClass::IN,
                                      RRType::NS, TTL(3600));