2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

check for zone being NULL

This commit is contained in:
Mark Andrews 2014-02-24 08:52:15 +11:00
parent 6d7aa71f2f
commit c48c691c4f

View File

@ -1084,6 +1084,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
keyname, current_serial); keyname, current_serial);
if (zone != NULL) {
dns_zone_getraw(zone, &raw); dns_zone_getraw(zone, &raw);
mayberaw = (raw != NULL) ? raw : zone; mayberaw = (raw != NULL) ? raw : zone;
if ((client->attributes & NS_CLIENTATTR_WANTEXPIRE) != 0 && if ((client->attributes & NS_CLIENTATTR_WANTEXPIRE) != 0 &&
@ -1099,6 +1100,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
} }
if (raw != NULL) if (raw != NULL)
dns_zone_detach(&raw); dns_zone_detach(&raw);
}
/* /*
* Hand the context over to sendstream(). Set xfr to NULL; * Hand the context over to sendstream(). Set xfr to NULL;