]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add/fix a comment 14595/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 3 Sep 2024 07:55:35 +0000 (09:55 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 3 Sep 2024 07:55:35 +0000 (09:55 +0200)
pdns/recursordist/syncres.cc

index 7af37bceb64ac3fea4ea415e033397576ba00953..8c1ffcfe4b72c924bd2129361b7fb7825ad24d77 100644 (file)
@@ -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);