From: Otto Moerbeek Date: Tue, 16 Nov 2021 13:30:47 +0000 (+0100) Subject: Positive instead of negative test X-Git-Tag: dnsdist-1.7.0-beta2~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10990%2Fhead;p=thirdparty%2Fpdns.git Positive instead of negative test Co-authored-by: Pieter Lexis --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index a0f81e59fd..a321382896 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2412,7 +2412,7 @@ static void startDoResolve(void *p) g_log<d_mdp.d_header.opcode != Opcode::Notify) { + if (dc->d_mdp.d_header.opcode == Opcode::Query) { if (sr.d_outqueries || sr.d_authzonequeries) { g_recCache->cacheMisses++; }