]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Revert "rbtdb zone find() function could set foundname incorrectly"
authorMichał Kępień <michal@isc.org>
Tue, 6 May 2025 07:14:18 +0000 (09:14 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 6 May 2025 07:14:18 +0000 (09:14 +0200)
This reverts commit 2025ba8f7af00bd7c1b6c4ee9979a7bd4213a400.

lib/dns/rbt-zonedb.c

index 07c4c2f7ac9310f8a61e4a3062a485bd8f63bab9..8c34beade105ab1d1f94df8c12c5bc02182dd3f5 100644 (file)
@@ -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;
                }
        }