mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
Revert "rbtdb zone find() function could set foundname incorrectly"
This reverts commit 2025ba8f7a
.
This commit is contained in:
@@ -1319,19 +1319,11 @@ found:
|
|||||||
/*
|
/*
|
||||||
* We have an exact match for the name, but there are no
|
* We have an exact match for the name, but there are no
|
||||||
* active rdatasets in the desired version. That means that
|
* active rdatasets in the desired version. That means that
|
||||||
* this node doesn't exist in the desired version.
|
* this node doesn't exist in the desired version, and that
|
||||||
* If there's a node above this one, reassign the
|
* we really have a partial match.
|
||||||
* foundname to the parent and treat this as a partial
|
|
||||||
* match.
|
|
||||||
*/
|
*/
|
||||||
if (!wild) {
|
if (!wild) {
|
||||||
NODE_UNLOCK(lock, &nlocktype);
|
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;
|
goto partial_match;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user