]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fixed data race in log.c
authorDiego Fronza <diego@isc.org>
Fri, 20 Dec 2019 22:29:18 +0000 (19:29 -0300)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 10 Mar 2020 10:49:53 +0000 (11:49 +0100)
commita2008520011f29a605c27fcb0de0cefd27675b78
tree037b2617204fac188c0f3c1897e896784f1d5cd6
parent6d252220b02ffc23b6c859004fb57dbf25f56000
Fixed data race in log.c

A data race was happening while BIND was starting due to
isc_log_wouldlog function accessing lctx->logconfig without a lock.

To prevent that without incurring much costs, that variable was made
atomic.
lib/isc/log.c