]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Correct skip record condition in processRecords. 12198/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 12:49:59 +0000 (13:49 +0100)
Noted the other day by @rgacogne

pdns/syncres.cc

index 7dd8648c5f01c6737e5ab0190f39d88d18db873e..cd92b619c8c1833a697e06d14e8ecc2586366893 100644 (file)
@@ -4714,7 +4714,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;
     }