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.
addrinfo = valarg->addrinfo;
message = val->message;
- fctx->vresult = val->result;
FCTXTRACE("received validation completion event");
LOCK(&fctx->lock);
+ fctx->vresult = val->result;
+
ISC_LIST_UNLINK(fctx->validators, val, link);
if (SHUTTINGDOWN(fctx)) {