mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Fix a data race in dns__catz_update_cb()
The dns__catz_update_cb() function was earlier updated (see d2ecff3c4a0d961041b860515858d258d40462d7) to use a separate 'dns_db_t' object ('catz->updb' instead of 'catz->db') to avoid a race between the 'dns__catz_update_cb()' and 'dns_catz_dbupdate_callback()' functions, but the 'REQUIRE' check there still checks the validity of the 'catz->db' object. Fix the omission.
This commit is contained in:
parent
2c3bbf31cf
commit
a2817541b3
@ -2234,7 +2234,7 @@ dns__catz_update_cb(void *data) {
|
|||||||
uint32_t catz_vers;
|
uint32_t catz_vers;
|
||||||
|
|
||||||
REQUIRE(DNS_CATZ_ZONE_VALID(catz));
|
REQUIRE(DNS_CATZ_ZONE_VALID(catz));
|
||||||
REQUIRE(DNS_DB_VALID(catz->db));
|
REQUIRE(DNS_DB_VALID(catz->updb));
|
||||||
REQUIRE(DNS_CATZ_ZONES_VALID(catz->catzs));
|
REQUIRE(DNS_CATZ_ZONES_VALID(catz->catzs));
|
||||||
|
|
||||||
updb = catz->updb;
|
updb = catz->updb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user