]> granicus.if.org Git - pdns/commitdiff
else if for readability
authorphonedph1 <phoned@gmail.com>
Wed, 5 Sep 2018 01:41:15 +0000 (01:41 +0000)
committerphonedph1 <phoned@gmail.com>
Wed, 5 Sep 2018 01:41:15 +0000 (01:41 +0000)
pdns/ws-recursor.cc

index 1b3a8c990840b1befdc9ba1f6dcb6b25868618cd..82a45e3f592bfd34c1e19722b85d5a452348deb0 100644 (file)
@@ -490,7 +490,7 @@ void RecursorWebServer::jsonstat(HttpRequest* req, HttpResponse *resp)
 
     if(req->getvars["name"]=="servfail-queries")
       queries=broadcastAccFunction<vector<query_t> >(pleaseGetServfailQueryRing);
-    if(req->getvars["name"]=="bogus-queries")
+    else if(req->getvars["name"]=="bogus-queries")
       queries=broadcastAccFunction<vector<query_t> >(pleaseGetBogusQueryRing);
     else if(req->getvars["name"]=="queries")
       queries=broadcastAccFunction<vector<query_t> >(pleaseGetQueryRing);