From d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 16 Nov 2022 13:49:59 +0100 Subject: [PATCH] Correct skip record condition in processRecords. Noted the other day by @rgacogne --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 7dd8648c5f..cd92b619c8 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -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; } -- 2.47.2