Show
Ignore:
Timestamp:
12/31/10 14:31:39 (2 years ago)
Author:
ahu
Message:

repair some tabdamage

Files:
1 modified

Legend:

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

    r1777 r1778  
    148148  uint64_t numrecords=0, numerrors=0; 
    149149   
    150     while(sd.db->get(rr)) { 
    151       if(rr.qtype.getCode() == QType::MX)  
    152         rr.content = lexical_cast<string>(rr.priority)+" "+rr.content; 
     150  while(sd.db->get(rr)) { 
     151    if(rr.qtype.getCode() == QType::MX)  
     152      rr.content = lexical_cast<string>(rr.priority)+" "+rr.content; 
    153153       
    154       try { 
    155         shared_ptr<DNSRecordContent> drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content)); 
    156         string tmp=drc->serialize(rr.qname); 
    157       } 
    158       catch(std::exception& e)  
    159       { 
    160         cerr<<"Following record had a problem: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl; 
    161         cerr<<"Error was: "<<e.what()<<endl; 
    162         numerrors++; 
    163       } 
    164       numrecords++; 
    165     } 
    166     cerr<<"Checked "<<numrecords<<" records, "<<numerrors<<" errors"<<endl; 
    167    
    168    
     154    try { 
     155      shared_ptr<DNSRecordContent> drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content)); 
     156      string tmp=drc->serialize(rr.qname); 
     157    } 
     158    catch(std::exception& e)  
     159    { 
     160      cerr<<"Following record had a problem: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl; 
     161      cerr<<"Error was: "<<e.what()<<endl; 
     162      numerrors++; 
     163    } 
     164    numrecords++; 
     165  } 
     166  cerr<<"Checked "<<numrecords<<" records, "<<numerrors<<" errors"<<endl; 
    169167} 
    170168