From: Christian Hofstaedtler Date: Fri, 7 Oct 2016 00:44:10 +0000 (+0200) Subject: apiServerSearchData simplify == false X-Git-Tag: dnsdist-1.1.0-beta2~88^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4548%2Fhead;p=thirdparty%2Fpdns.git apiServerSearchData simplify == false --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 2960be0563..b096412b4e 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -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");