]> git.ipfire.org Git - thirdparty/bind9.git/commit
Assign fctx->client when fctx is created rather when the join happens.
authorMark Andrews <marka@isc.org>
Thu, 28 Nov 2019 22:59:03 +0000 (09:59 +1100)
committerMark Andrews <marka@isc.org>
Tue, 3 Dec 2019 06:00:02 +0000 (17:00 +1100)
commitd0796289dc9b46389f0fa3376858f19aa89630ca
tree8e98eb4284dd4c2c2cdd974f1d36fda8925733f5
parent90712110e3b5027f2543b355c42d922fc9633b7f
Assign fctx->client when fctx is created rather when the join happens.

This prevents races on fctx->client whenever a new fetch joins a existing
fetch (by calling fctx_join) as it is now invariant for the active life of
fctx.

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