From: Otto Moerbeek Date: Tue, 3 Sep 2024 07:55:35 +0000 (+0200) Subject: Add/fix a comment X-Git-Tag: rec-5.2.0-alpha1~100^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14595%2Fhead;p=thirdparty%2Fpdns.git Add/fix a comment --- diff --git a/pdns/recursordist/syncres.cc b/pdns/recursordist/syncres.cc index 7af37bceb6..8c1ffcfe4b 100644 --- a/pdns/recursordist/syncres.cc +++ b/pdns/recursordist/syncres.cc @@ -4310,6 +4310,7 @@ void SyncRes::sanitizeRecords(const std::string& prefix, LWResult& lwr, const DN } } else if (rec->d_type == QType::DNAME) { + // We have checked the DNAME rec->d_name above, the actual answer will be synthesized in a later step allowedAnswerNames.insert(rec->d_name); } allowAdditionalEntry(allowedAdditionals, *rec); @@ -4363,7 +4364,7 @@ void SyncRes::sanitizeRecords(const std::string& prefix, LWResult& lwr, const DN } } } - /* dealing with recors in additional */ + /* dealing with records in additional */ else if (rec->d_place == DNSResourceRecord::ADDITIONAL) { if (rec->d_type != QType::A && rec->d_type != QType::AAAA && rec->d_type != QType::RRSIG) { LOG(prefix << qname << ": Removing irrelevant record '" << rec->toString() << "' in the ADDITIONAL section received from " << auth << endl);