]> 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>
Wed, 17 Jul 2019 16:38:57 +0000 (18:38 +0200)
pdns/ws-auth.cc

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