]> 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:47:40 +0000 (08:47 +0100)
commit93c176d2d6bcdb37ec5f02370ae2fa1e7b2e96b7
treec986d5c27bd3537955069bee2d28dbab5aedce13
parent44d995992aa2e8db62042017586da8be748394c8
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