mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
prevent TSAN being trigged when DNS_RBTFIND_EMPTYDATA is set
This commit is contained in:
parent
9b5969eab0
commit
7f30540727
@ -1652,9 +1652,11 @@ dns_rbt_findnode(dns_rbt_t *rbt, const dns_name_t *name, dns_name_t *foundname,
|
|||||||
/*
|
/*
|
||||||
* This might be the closest enclosing name.
|
* This might be the closest enclosing name.
|
||||||
*/
|
*/
|
||||||
if (DATA(current) != NULL ||
|
if ((options & DNS_RBTFIND_EMPTYDATA) != 0 ||
|
||||||
(options & DNS_RBTFIND_EMPTYDATA) != 0)
|
DATA(current) != NULL)
|
||||||
|
{
|
||||||
*node = current;
|
*node = current;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Point the chain to the next level. This
|
* Point the chain to the next level. This
|
||||||
@ -1725,8 +1727,8 @@ dns_rbt_findnode(dns_rbt_t *rbt, const dns_name_t *name, dns_name_t *foundname,
|
|||||||
* ISC_R_SUCCESS to indicate an exact match.
|
* ISC_R_SUCCESS to indicate an exact match.
|
||||||
*/
|
*/
|
||||||
if (current != NULL && (options & DNS_RBTFIND_NOEXACT) == 0 &&
|
if (current != NULL && (options & DNS_RBTFIND_NOEXACT) == 0 &&
|
||||||
(DATA(current) != NULL ||
|
((options & DNS_RBTFIND_EMPTYDATA) != 0 || DATA(current) != NULL))
|
||||||
(options & DNS_RBTFIND_EMPTYDATA) != 0)) {
|
{
|
||||||
/*
|
/*
|
||||||
* Found an exact match.
|
* Found an exact match.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user