d_stuff = 0;
d_rollbackmarker=d_content.size();
- if(iequals(d_qname,d_recordqname)) { // don't do the whole label compression thing if we *know* we can get away with "see question"
+ 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"
static char marker[2]={0xc0, 0x0c};
d_content.insert(d_content.end(), &marker[0], &marker[2]);
}
{
DNSPacketWriter::lmap_t::iterator ret;
for(ret=lmap.begin(); ret != lmap.end(); ++ret)
- if(iequals(ret->first,label))
+ if(!strcasecmp(ret->first.c_str() ,label.c_str()))
break;
return ret;
}