From: Kees Monshouwer Date: Tue, 9 Jul 2019 20:28:45 +0000 (+0200) Subject: auth: pdnsutil show zone, make sure the DNSKEY is from the right zone X-Git-Tag: auth-4.2.0-rc3~12^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3022975b9ff01268e022dfc29e1b2ac7a7d3509;p=pdns auth: pdnsutil show zone, make sure the DNSKEY is from the right zone --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 8eb3f016d..ff4fcdb2c 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1571,9 +1571,8 @@ bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = false) vector keys; DNSZoneRecord zr; - B.lookup(QType(QType::DNSKEY), zone); - while(B.get(zr)) { - if (zr.dr.d_type != QType::DNSKEY) continue; + di.backend->lookup(QType(QType::DNSKEY), zone, nullptr, di.id ); + while(di.backend->get(zr)) { keys.push_back(*getRR(zr.dr)); }