Permalink
Browse files

fix purge zone$ and lookup for labels with spaces

  • Loading branch information...
1 parent 801812e commit 8403ade9fc1f581d33bd8ced1e6b8d4ef9fe2915 @mind04 mind04 committed with mind04 Aug 1, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/packetcache.cc
View
@@ -208,7 +208,7 @@ int PacketCache::purge(const string &match)
cmap_t::const_iterator start=iter;
for(; iter != d_map.end(); ++iter) {
- if(!iter->qname.compare(0, zone.size(), zone)) {
+ if(iter->qname.compare(0, zone.size(), zone) != 0) {
break;
}
delcount++;
@@ -268,7 +268,7 @@ bool PacketCache::getEntryLocked(const string &qname, const QType& qtype, CacheE
string PacketCache::pcReverse(const string &content)
{
string tmp = string(content.rbegin(), content.rend());
- return toLower(boost::replace_all_copy(tmp, ".", " "))+" ";
+ return toLower(boost::replace_all_copy(tmp, ".", "\t"))+"\t";
}

0 comments on commit 8403ade

Please sign in to comment.