]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix data race on fctx->vresult in validated()
authorOndřej Surý <ondrej@isc.org>
Thu, 19 Mar 2026 02:42:08 +0000 (03:42 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 19 Mar 2026 23:56:19 +0000 (00:56 +0100)
commita2bd8339095c99b4f0faea0f1bc39128c048c3aa
tree4cc7319e7d59e39ec2f95f74f252c7a593a84db4
parentea408e3c3db58699f402ab22c157f1ab1711fdc3
Fix data race on fctx->vresult in validated()

Move the write to fctx->vresult after LOCK(&fctx->lock).  The field was
being set before acquiring the lock, but dns_resolver_logfetch() reads
it under the same lock from another thread.
lib/dns/resolver.c