Merge branch '3968-catz-data-race-in-dns__catz_update_cb' into 'main'

Fix a data race in dns__catz_update_cb()

Closes #3968

See merge request isc-projects/bind9!7726
This commit is contained in:
Arаm Sаrgsyаn
2023-03-27 11:35:43 +00:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
6128. [bug] Fix an omission in an earlier commit to avoid a race
between the 'dns__catz_update_cb()' and
'dns_catz_dbupdate_callback()' functions. [GL #3968]
6127. [cleanup] Refactor network manager netievent callbacks to
use isc_job_run()/isc_async_run(). [GL #3964]

View File

@@ -2234,7 +2234,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;