]> 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 07:59:46 +0000 (08:59 +0100)
commitaf8c5e4013a3e6fcabfdcebf4fd055fada287552
treed60a98ae39a595bf0e73bbd9c81df553fe922ae3
parent3bc01f94520860e5f1b8ade36566afd3fad381e6
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