2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Revert "detect when closest-encloser name is too long"

This reverts commit 1f4ba71f56.
This commit is contained in:
Michał Kępień
2025-05-06 09:14:18 +02:00
parent b53ae56106
commit 8ea0c1d92b

View File

@@ -11432,15 +11432,7 @@ again:
* Add no qname proof. * Add no qname proof.
*/ */
labels = dns_name_countlabels(cname) + 1; labels = dns_name_countlabels(cname) + 1;
if (labels > maxlabels) { if (dns_name_countlabels(name) == labels) {
char namebuf[DNS_NAME_FORMATSIZE];
dns_name_format(cname, namebuf, sizeof(namebuf));
ns_client_log(qctx->client, DNS_LOGCATEGORY_DNSSEC,
NS_LOGMODULE_QUERY, ISC_LOG_WARNING,
"closest-encloser name too long: %s",
namebuf);
dns_name_copy(name, wname);
} else if (labels == maxlabels) {
dns_name_copy(name, wname); dns_name_copy(name, wname);
} else { } else {
dns_name_split(name, labels, NULL, wname); dns_name_split(name, labels, NULL, wname);