]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/ws-auth.cc
Merge pull request #7787 from rgacogne/auth-api-replace-ent
[thirdparty/pdns.git] / pdns / ws-auth.cc
index 7f5d1b7cde0554aa521e7329f28268c1ad68dd54..21396729caa9b996574d57932e3d98cd546a8dbf 100644 (file)
@@ -2010,8 +2010,10 @@ static void patchZone(HttpRequest* req, HttpResponse* resp) {
           di.backend->lookup(QType(QType::ANY), qname);
           DNSResourceRecord rr;
           while (di.backend->get(rr)) {
-            if (qtype.getCode() == 0) {
+            if (rr.qtype.getCode() == 0) {
               ent_present = true;
+              /* that's fine, we will override it */
+              continue;
             }
             if (qtype.getCode() != rr.qtype.getCode()
               && (exclusiveEntryTypes.count(qtype.getCode()) != 0