From 8ea0c1d92b4bb6494ceebdfd7b0e38b95dac26a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Tue, 6 May 2025 09:14:18 +0200 Subject: [PATCH] Revert "detect when closest-encloser name is too long" This reverts commit 1f4ba71f562cf04c6c28537feb41d92bb509f310. --- lib/ns/query.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/ns/query.c b/lib/ns/query.c index a61fd92bce..746d3b6268 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -11432,15 +11432,7 @@ again: * Add no qname proof. */ labels = dns_name_countlabels(cname) + 1; - if (labels > maxlabels) { - 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) { + if (dns_name_countlabels(name) == labels) { dns_name_copy(name, wname); } else { dns_name_split(name, labels, NULL, wname);