From 3df33a39169c3e4a19b86d55abdc006cb21f4d31 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 3 Sep 2024 09:55:35 +0200 Subject: [PATCH] Add/fix a comment --- pdns/recursordist/syncres.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2