unsigned int i;
dns_rdataclass_t zclass;
dns_fixedname_t fixedname;
- dns_name_t *zname = NULL;
+ dns_name_t *zname = NULL; /* NULL if parsing of zone name fails. */
isc_buffer_t b;
bool root = false;
bool rfc1918 = false;
};
static optionstable dialups[] = {
- { "notify", CFG_ZONE_MASTER | CFG_ZONE_SLAVE },
- { "notify-passive", CFG_ZONE_SLAVE },
- { "passive", CFG_ZONE_SLAVE | CFG_ZONE_STUB },
- { "refresh", CFG_ZONE_SLAVE | CFG_ZONE_STUB },
+ { "notify", CFG_ZONE_MASTER | CFG_ZONE_SLAVE },
+ { "notify-passive", CFG_ZONE_SLAVE },
+ { "passive", CFG_ZONE_SLAVE | CFG_ZONE_STUB },
+ { "refresh", CFG_ZONE_SLAVE | CFG_ZONE_STUB },
};
znamestr = cfg_obj_asstring(cfg_tuple_get(zconfig, "name"));
* server list is used in the absence of one explicitly specified.
*/
if (ztype == CFG_ZONE_SLAVE || ztype == CFG_ZONE_STUB ||
- (ztype == CFG_ZONE_MIRROR && !dns_name_equal(zname, dns_rootname)))
+ (ztype == CFG_ZONE_MIRROR && zname != NULL &&
+ !dns_name_equal(zname, dns_rootname)))
{
obj = NULL;
if (cfg_map_get(zoptions, "masters", &obj) != ISC_R_SUCCESS) {
}
}
-
/*
* Check that max-zone-ttl isn't used with masterfile-format map
*/