mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix a data race in dns__catz_update_cb()
The dns__catz_update_cb() function was earlier updated (seed2ecff3c4a) 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. (cherry picked from commita2817541b3)
This commit is contained in:
parent
c2d8d99148
commit
987f61dbb7
1 changed files with 1 additions and 1 deletions
|
|
@ -2254,7 +2254,7 @@ dns__catz_update_cb(void *data) {
|
|||
uint32_t catz_vers;
|
||||
|
||||
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));
|
||||
|
||||
updb = catz->updb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue