]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Correct skip record condition in processRecords. 12229/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 16 Nov 2022 12:49:59 +0000 (13:49 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 23 Nov 2022 08:22:36 +0000 (09:22 +0100)
Noted the other day by @rgacogne

(cherry picked from commit d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1)

pdns/syncres.cc

index 4caac3b62d783d1baacd3c7a6e63c8ade74c7bfd..850accfe1d65dffc7acf6752cb9f92f02d5886fe 100644 (file)
@@ -3596,7 +3596,7 @@ bool SyncRes::processRecords(const std::string& prefix, const DNSName& qname, co
   bool referralOnDS = false;
 
   for (auto& rec : lwr.d_records) {
-    if (rec.d_type != QType::OPT && rec.d_class != QClass::IN) {
+    if (rec.d_type == QType::OPT || rec.d_class != QClass::IN) {
       continue;
     }