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

(cherry picked from commit d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1)

pdns/syncres.cc

index 39ba17df6fb99d99642cce85548a43c79bb3e8d5..47ad1e7207e881e9976f0356a0357b350bef26d3 100644 (file)
@@ -3589,7 +3589,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;
     }