]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: Fix data race on fctx->vresult in validated()
authorOndřej Surý <ondrej@isc.org>
Thu, 19 Mar 2026 23:56:24 +0000 (00:56 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 19 Mar 2026 23:56:24 +0000 (00:56 +0100)
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.

Merge branch 'ondrej/fix-data-race-on-fctx-result-in-validated' into 'main'

See merge request isc-projects/bind9!11717


Trivial merge