From 606c8752da7f01784c08f63f7e7d735839e29754 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Fri, 7 Oct 2016 02:44:10 +0200 Subject: [PATCH] apiServerSearchData simplify == false --- pdns/ws-auth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.47.2