Changeset 995

Show
Ignore:
Timestamp:
03/25/07 20:04:42 (2 years ago)
Author:
ahu
Message:

fix up zone2sql for prio-mismatching

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pdns/pdns/backends/bind/zone2sql.cc

    r961 r995  
    4040#include "dnspacket.hh" 
    4141#include "zoneparser-tng.hh" 
    42  
     42#include "dnsrecords.hh" 
     43#include <boost/algorithm/string.hpp> 
     44 
     45using namespace boost; 
    4346StatBag S; 
    4447 
     
    106109  } 
    107110   
     111  if(qtype == "MX" || qtype == "SRV") {  
     112    prio=atoi(content.c_str()); 
     113     
     114    string::size_type pos = content.find_first_not_of("0123456789"); 
     115    if(pos != string::npos) 
     116      erase_head(content, pos); 
     117    trim_left(content); 
     118  } 
     119 
     120 
    108121  lastsoa_domain_id=dirty_hack_num; 
    109122 
     
    152165{ 
    153166  try { 
     167    reportAllTypes(); 
    154168#if __GNUC__ >= 3 
    155169    ios_base::sync_with_stdio(false);