mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Revert "detect when closest-encloser name is too long"
This reverts commit 1f4ba71f56
.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user