From: Otto Moerbeek Date: Wed, 16 Nov 2022 12:49:59 +0000 (+0100) Subject: Correct skip record condition in processRecords. X-Git-Tag: rec-4.8.0-rc1~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12200%2Fhead;p=thirdparty%2Fpdns.git Correct skip record condition in processRecords. Noted the other day by @rgacogne (cherry picked from commit d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1) --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 443b94fd63..29d6a9565d 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -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; }