Changeset 1167

Show
Ignore:
Timestamp:
03/22/08 17:14:38 (7 months ago)
Author:
ahu
Message:

deal with embedded \r in labels - sadly, closing ticket 162

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pdns/pdns/rcpgenerator.cc

    r1100 r1167  
    6262  d_pos = endptr - d_string.c_str(); 
    6363} 
    64  
    65  
    6664 
    6765void RecordTextReader::xfrTime(uint32_t &val) 
     
    157155  const char* strptr=d_string.c_str(); 
    158156  while(d_pos < d_end) { 
    159     if(dns_isspace(strptr[d_pos])) 
     157    if(strptr[d_pos]!='\r' && dns_isspace(strptr[d_pos])) 
    160158      break; 
    161159