Skip to content

Commit

Permalink
pdns_iequals fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahupowerdns committed Sep 2, 2014
1 parent 2203669 commit ea0eb9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdns/misc.hh
Expand Up @@ -329,7 +329,8 @@ inline bool pdns_iequals(const std::string& a, const std::string& b)
return false;

const char *aPtr = a.c_str(), *bPtr = b.c_str();
while(*aPtr) {
const char *aEptr = aPtr + a.length();
while(aPtr != aEptr) {
if((*aPtr != *bPtr) && (dns_tolower(*aPtr) != dns_tolower(*bPtr)))
return false;
aPtr++;
Expand Down

0 comments on commit ea0eb9e

Please sign in to comment.