Skip to content

Commit

Permalink
pdnssec: fix ttl ceck for RRSIG records
Browse files Browse the repository at this point in the history
  • Loading branch information
mind04 committed Jan 6, 2015
1 parent 98d3003 commit fa52e02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdns/pdnssec.cc
Expand Up @@ -483,6 +483,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;
Expand Down

0 comments on commit fa52e02

Please sign in to comment.