From: Otto Moerbeek Date: Wed, 16 Nov 2022 12:49:59 +0000 (+0100) Subject: Correct skip record condition in processRecords. X-Git-Tag: dnsdist-1.8.0-rc1~237^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12198%2Fhead;p=thirdparty%2Fpdns.git Correct skip record condition in processRecords. Noted the other day by @rgacogne --- 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; }