]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Use QType::ENT instead of 0 7831/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 17 May 2019 13:38:00 +0000 (15:38 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 17 May 2019 15:20:12 +0000 (17:20 +0200)
pdns/ws-auth.cc

index 21396729caa9b996574d57932e3d98cd546a8dbf..349876b74ea8bef7c752d6d28e0de7ad75096675 100644 (file)
@@ -2010,7 +2010,7 @@ static void patchZone(HttpRequest* req, HttpResponse* resp) {
           di.backend->lookup(QType(QType::ANY), qname);
           DNSResourceRecord rr;
           while (di.backend->get(rr)) {
-            if (rr.qtype.getCode() == 0) {
+            if (rr.qtype.getCode() == QType::ENT) {
               ent_present = true;
               /* that's fine, we will override it */
               continue;