From 5a642e0b648b22f884bbd0b517c431eb90e6b9e0 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 16 Nov 2021 14:30:47 +0100 Subject: [PATCH] Positive instead of negative test Co-authored-by: Pieter Lexis --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.47.2