]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
API: correctly use lowercase compare for zone name
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 8 Apr 2014 12:58:55 +0000 (14:58 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 8 Apr 2014 13:15:56 +0000 (15:15 +0200)
pdns/ws-auth.cc

index 7d9d4b441c0e965090dbfd7e49316ed3bbf3a3fd..c489c38e2cd856705f44633abe3e3a6fb5dbed40 100644 (file)
@@ -600,7 +600,7 @@ static void patchZone(HttpRequest* req, HttpResponse* resp) {
       qtype = stringFromJson(rrset, "type");
       changetype = toUpper(stringFromJson(rrset, "changetype"));
 
-      if (!iends_with(qname, dotsuffix) && qname != zonename)
+      if (!iends_with(qname, dotsuffix) && !pdns_iequals(qname, zonename))
         throw ApiException("RRset "+qname+" IN "+qtype.getName()+": Name is out of zone");
 
       if (changetype == "DELETE") {