From: Kees Monshouwer Date: Tue, 9 Jul 2019 14:59:42 +0000 (+0200) Subject: auth: api, look for pre-existing RRsets in the right zone X-Git-Tag: auth-4.2.0-rc3~12^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9650d47b835c6012d0bc9f08b5556810ad54ebe7;p=pdns auth: api, look for pre-existing RRsets in the right zone --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index e53ac3276..8a3783d91 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -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) {