]> git.ipfire.org Git - thirdparty/bind9.git/commit
Lock zone before checking whether its asynchronous load is already pending
authorMichał Kępień <michal@isc.org>
Thu, 15 Feb 2018 19:31:49 +0000 (20:31 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 16 Feb 2018 07:59:46 +0000 (08:59 +0100)
commit3bc01f94520860e5f1b8ade36566afd3fad381e6
tree28d1a87a2c54466d10e1a2bfc6756b92eb961949
parentecaaa42c6b7835d8bea4748347a39e18bb0942a4
Lock zone before checking whether its asynchronous load is already pending

While this is not an issue in named, which only calls
dns_zone_asyncload() from task-exclusive mode, this function is exported
by libdns and thus may in theory be concurrently called for the same
zone by multiple threads.  It also does not hurt to be consistent
locking-wise with other DNS_ZONEFLG_LOADPENDING accesses.
lib/dns/zone.c