Changeset 1378

Show
Ignore:
Timestamp:
07/30/09 21:52:01 (8 months ago)
Author:
ahu
Message:

cherry-pick for 3.1.171:
1258 performance

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/pdns-3.1.7.1/pdns/dnswriter.cc

    r1156 r1378  
    6868  d_rollbackmarker=d_content.size(); 
    6969 
    70   if(iequals(d_qname,d_recordqname)) {  // don't do the whole label compression thing if we *know* we can get away with "see question" 
     70  if(!strcasecmp(d_qname.c_str(), d_recordqname.c_str())) {  // don't do the whole label compression thing if we *know* we can get away with "see question" 
    7171    static char marker[2]={0xc0, 0x0c}; 
    7272    d_content.insert(d_content.end(), &marker[0], &marker[2]); 
     
    154154  DNSPacketWriter::lmap_t::iterator ret; 
    155155  for(ret=lmap.begin(); ret != lmap.end(); ++ret) 
    156     if(iequals(ret->first,label)) 
     156    if(!strcasecmp(ret->first.c_str() ,label.c_str())) 
    157157      break; 
    158158  return ret;