]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only clear DNS_ZONEFLG_LOADPENDING in zone_asyncload() if zone loading is completed...
authorMichał Kępień <michal@isc.org>
Thu, 15 Feb 2018 19:31:51 +0000 (20:31 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 16 Feb 2018 08:03:27 +0000 (09:03 +0100)
commitec51b6d3d4b22ff81925152119c8a23283f4ccc0
tree297574eb572c5fb820315fb791976b562a659bbf
parent9c103120ad3a3d40e3b2bc081459915afbeab61d
Only clear DNS_ZONEFLG_LOADPENDING in zone_asyncload() if zone loading is completed immediately

zone_load() is not always synchronous, it may only initiate an
asynchronous load and return DNS_R_CONTINUE, which means zone loading
has not yet been completed.  In such a case, zone_asyncload() must not
clear DNS_ZONEFLG_LOADPENDING immediately and leave that up to
zone_postload().
lib/dns/zone.c