]> granicus.if.org Git - pdns/commitdiff
auth: api, look for pre-existing RRsets in the right zone
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 9 Jul 2019 14:59:42 +0000 (16:59 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 20 Sep 2019 12:42:27 +0000 (14:42 +0200)
pdns/ws-auth.cc

index c2fc9900991a07023036d93ca664dbdfc07cef0c..69c4fa328242156ef7ef8777df18d149a5aa4e7f 100644 (file)
@@ -2013,7 +2013,7 @@ static void patchZone(HttpRequest* req, HttpResponse* resp) {
 
         if (replace_records) {
           bool ent_present = false;
-          di.backend->lookup(QType(QType::ANY), qname, -1);
+          di.backend->lookup(QType(QType::ANY), qname, di.id);
           DNSResourceRecord rr;
           while (di.backend->get(rr)) {
             if (rr.qtype.getCode() == QType::ENT) {