]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Positive instead of negative test 10990/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 16 Nov 2021 13:30:47 +0000 (14:30 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Nov 2021 13:30:47 +0000 (14:30 +0100)
Co-authored-by: Pieter Lexis <pieter@plexis.eu>
pdns/pdns_recursor.cc

index a0f81e59fda2a2f504c6638b7ff58b97a2756756..a321382896e3d97ac497f5ef2a2204feed3a5c28 100644 (file)
@@ -2412,7 +2412,7 @@ static void startDoResolve(void *p)
       g_log<<endl;
     }
 
-    if (dc->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++;
       }