]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Correct skip record condition in processRecords. 12200/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, 16 Nov 2022 13:33:27 +0000 (14:33 +0100)
Noted the other day by @rgacogne

(cherry picked from commit d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1)

pdns/syncres.cc

index 443b94fd63e9d0056dc602ab8fe918cb55af6a19..29d6a9565dd037b3099698435aa7d47e60b8c33a 100644 (file)
@@ -4700,7 +4700,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;
     }