From 4ca7b72d5e6e837b4c88f4a52c5bc414ceb1e104 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 (cherry picked from commit d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1) --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 39ba17df6f..47ad1e7207 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -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; } -- 2.47.2