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:
committed by
Ondřej Surý
parent
caf18da7f6
commit
9936462f31
@@ -752,6 +752,7 @@ if [ -x "$DIG" ] ; then
|
||||
status=$((status+ret))
|
||||
fi
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "check that dig +unexpected works ($n)"
|
||||
ret=0
|
||||
dig_with_opts @10.53.0.6 +unexpected a a.example > dig.out.test$n || ret=1
|
||||
|
||||
Reference in New Issue
Block a user