]> 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>
Fri, 20 Mar 2026 02:22:53 +0000 (03:22 +0100)
commit993002cebf2d8150c212f6a6d9274aeecade9594
tree216ad15414a1e4dd9b38c09887b073ad63dba1bf
parent31cbfc9fb36e6f0b629167a32cf6acfe7937c837
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.

(cherry picked from commit a2bd8339095c99b4f0faea0f1bc39128c048c3aa)
lib/dns/resolver.c