From e6a9a68f425ab621f63e10e7247479c79bd2f959 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 "rbtdb zone find() function could set foundname incorrectly" This reverts commit 2025ba8f7af00bd7c1b6c4ee9979a7bd4213a400. --- lib/dns/rbt-zonedb.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/dns/rbt-zonedb.c b/lib/dns/rbt-zonedb.c index 07c4c2f7ac..8c34beade1 100644 --- a/lib/dns/rbt-zonedb.c +++ b/lib/dns/rbt-zonedb.c @@ -1319,19 +1319,11 @@ found: /* * We have an exact match for the name, but there are no * active rdatasets in the desired version. That means that - * this node doesn't exist in the desired version. - * If there's a node above this one, reassign the - * foundname to the parent and treat this as a partial - * match. + * this node doesn't exist in the desired version, and that + * we really have a partial match. */ if (!wild) { NODE_UNLOCK(lock, &nlocktype); - if (search.chain.level_count > 0) { - dns_dbnode_t *parent = - search.chain.levels - [search.chain.level_count - 1]; - dns_rbt_fullnamefromnode(parent, foundname); - } goto partial_match; } }