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: dnsdist-1.4.0-rc3~12^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=162fcac6f5f169beeaf0388aeb43e1a2db561ede;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 c2fc99009..69c4fa328 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -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) {