2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

dns_master_indent and dns_master_indentstr must not be global

The indentation for dumping the master zone was driven by two
global variables dns_master_indent and dns_master_indentstr.  In
threaded mode, this becomes prone to data access races, so this commit
converts the global variables into a local per-context tuple that
consist of count and string.
This commit is contained in:
Mark Andrews
2019-11-18 20:46:58 +11:00
committed by Ondřej Surý
parent caf18da7f6
commit 9936462f31
14 changed files with 89 additions and 84 deletions

View File

@@ -1086,7 +1086,7 @@ modrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
goto cleanup;
result = dns_master_rdatasettotext(sdlznode->name, rdataset,
style, buffer);
style, NULL, buffer);
if (result != ISC_R_SUCCESS)
goto cleanup;