]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
apiServerSearchData simplify == false 4548/head
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Fri, 7 Oct 2016 00:44:10 +0000 (02:44 +0200)
committerChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Fri, 7 Oct 2016 00:44:10 +0000 (02:44 +0200)
pdns/ws-auth.cc

index 2960be0563dddb4c9f72aaa3ea10e5c6ec3a9919..b096412b4e01c8f4b8997e047c202a635d19e13a 100644 (file)
@@ -1489,7 +1489,7 @@ static void apiServerSearchData(HttpRequest* req, HttpResponse* resp) {
 
   if (q.empty())
     throw ApiException("Query q can't be blank");
-  if (sMax.empty() == false)
+  if (!sMax.empty())
     maxEnts = std::stoi(sMax);
   if (maxEnts < 1)
     throw ApiException("Maximum entries must be larger than 0");