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

Backport of MR !11717

Merge branch 'backport-ondrej/fix-data-race-on-fctx-result-in-validated-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11721


Trivial merge