From: Remi Gacogne Date: Fri, 20 May 2016 07:56:25 +0000 (+0200) Subject: rec: Fix the `noEdnsOutQueries` counter X-Git-Tag: auth-4.0.0-beta1~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=544a7e58b7464d3f8c8373ff7eb62a3f0a1f3856;p=thirdparty%2Fpdns.git rec: Fix the `noEdnsOutQueries` counter It was incremented for every call to `asyncresolveWrapper()`, then one more time for queries sent without EDNS. --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index da0482d492..91e2393998 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -316,8 +316,6 @@ int SyncRes::asyncresolveWrapper(const ComboAddress& ip, bool ednsMANDATORY, con If '3', send bare queries */ - g_stats.noEdnsOutQueries++; - SyncRes::EDNSStatus* ednsstatus; ednsstatus = &t_sstorage->ednsstatus[ip]; // does this include port?