]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
nits
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 12 Mar 2016 13:05:11 +0000 (14:05 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 12 Mar 2016 13:05:11 +0000 (14:05 +0100)
pdns/pdnsutil.cc

index a2e4e4d2bc90ed714c4cc675b109d17e1c59f7ad..171909228aba8a472615f34130e0d1eaea5abebb 100644 (file)
@@ -1493,12 +1493,12 @@ bool showZone(DNSSECKeeper& dk, const DNSName& zone)
   }
 
   if (dk.isPresigned(zone)) {
-    cout <<"Zone is " << (dk.isPresigned(zone) ? "" : "not ") << "presigned"<<endl;
+    cout <<"Zone is presigned"<<endl;
     // get us some keys
     vector<DNSKEYRecordContent> keys;
     DNSResourceRecord rr;
 
-    B.lookup(QType(QType::DNSKEY), DNSName(zone));
+    B.lookup(QType(QType::DNSKEY), zone);
     while(B.get(rr)) {
       if (rr.qtype != QType::DNSKEY) continue;
       keys.push_back(*dynamic_cast<DNSKEYRecordContent*>(DNSKEYRecordContent::make(rr.getZoneRepresentation())));