If `query_getzonedb()` finds a zone but the zone is expired it
immediately returns `DNS_R_EXPIRED` and doesn't attempt to get the zone
DB (which would be NULL in this case).
This enable caller to have a more precise reason of why getting the DB
has failed.
partial = true;
}
if (result == ISC_R_SUCCESS || result == DNS_R_PARTIALMATCH) {
+ if (dns_zone_isexpired(zone)) {
+ result = DNS_R_EXPIRED;
+ goto fail;
+ }
+
result = dns_zone_getdb(zone, &db);
}