]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pdnssec: fix ttl ceck for RRSIG records 2053/head
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 6 Jan 2015 21:46:23 +0000 (22:46 +0100)
committermind04 <mind04@monshouwer.org>
Tue, 6 Jan 2015 21:55:33 +0000 (22:55 +0100)
pdns/pdnssec.cc

index 4638e38f6bb279078764b671a9b354997cee5351..abcfd0c10195d68869b83f5298abf709b54285e0 100644 (file)
@@ -480,6 +480,10 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone)
 
     content.str("");
     content<<rr.qname<<" "<<rr.qtype.getName();
+    if (rr.qtype.getCode() == QType::RRSIG) {
+      RRSIGRecordContent rrc(rr.content);
+      content<<" ("<<DNSRecordContent::NumberToType(rrc.d_type)<<")";
+    }
     ret = ttl.insert(pair<string, unsigned int>(toLower(content.str()), rr.ttl));
     if (ret.second == false && ret.first->second != rr.ttl) {
       cout<<"[Error] TTL mismatch in rrset: '"<<rr.qname<<" IN " <<rr.qtype.getName()<<" "<<rr.content<<"' ("<<ret.first->second<<" != "<<rr.ttl<<")"<<endl;