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: dnsdist-1.4.0-rc3~12^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a53d30aba533d7af50384f1ae4b507549005c18;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 925c8aebc..49bfa8fc4 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1611,9 +1611,8 @@ bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = false) vector keys; DNSZoneRecord zr; - B.lookup(QType(QType::DNSKEY), zone, -1 ); - while(B.get(zr)) { - if (zr.dr.d_type != QType::DNSKEY) continue; + di.backend->lookup(QType(QType::DNSKEY), zone, di.id ); + while(di.backend->get(zr)) { keys.push_back(*getRR(zr.dr)); }