Changeset 2205

Show
Ignore:
Timestamp:
06/03/11 16:11:56 (4 years ago)
Author:
ahu
Message:

close ticket 355, pdnssec manual 'hash-zone-record' emitted inverted warning for narrow hashed zones, thanks to jan piet mens for discovering this.
Plus fix mis-testing of TXT records in test-zone.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdnssec.cc

    r2177 r2205  
    216216    if(rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::SRV)  
    217217      rr.content = lexical_cast<string>(rr.priority)+" "+rr.content; 
     218    if(rr.qtype.getCode() == QType::TXT && !rr.content.empty() && rr.content[0]!='"') 
     219      rr.content = "\""+rr.content+"\"";   
     220       
    218221    if(rr.auth == 0 && rr.qtype.getCode()!=QType::NS && rr.qtype.getCode()!=QType::A) 
    219222    { 
    220223      cout<<"Following record is auth=0, run pdnssec rectify-zone?: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl; 
     224      numerrors++; 
    221225    } 
    222226    try { 
     
    630634      return 0; 
    631635    } 
    632     if(!narrow) { 
     636    if(narrow) { 
    633637      cerr<<"The '"<<zone<<"' zone uses narrow NSEC3, but calculating hash anyhow"<<endl; 
    634638    }