]> 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>
Thu, 15 Feb 2018 19:31:51 +0000 (20:31 +0100)
commit29b7efdd9f8ce9b49371809498744c4b076dc3ee
treecda09fbf8964e7ca67ae127c7b296f7648d1c284
parent0e4fba2ced287bae475803778b7069f1a1784a89
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