goto cleanup;
}
- result = dns_view_findzone(cz->view, name, &zone);
+ result = dns_view_findzone(cz->view, name, DNS_ZTFIND_EXACT, &zone);
if (cz->mod) {
dns_catz_zone_t *parentcatz;
}
/* Is it there yet? */
- CHECK(dns_view_findzone(cz->view, name, &zone));
+ CHECK(dns_view_findzone(cz->view, name, DNS_ZTFIND_EXACT, &zone));
/*
* Load the zone from the master file. If this fails, we'll
dns_name_format(dns_catz_entry_getname(cz->entry), cname,
DNS_NAME_FORMATSIZE);
result = dns_view_findzone(cz->view, dns_catz_entry_getname(cz->entry),
- &zone);
+ DNS_ZTFIND_EXACT, &zone);
if (result != ISC_R_SUCCESS) {
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
NAMED_LOGMODULE_SERVER, ISC_LOG_WARNING,
isc_ht_iter_current(it, (void **)&entry);
name = dns_catz_entry_getname(entry);
- tresult = dns_view_findzone(pview, name, &dnszone);
+ tresult = dns_view_findzone(pview, name,
+ DNS_ZTFIND_EXACT, &dnszone);
if (tresult != ISC_R_SUCCESS) {
continue;
}
*/
if (view->hints == NULL) {
dns_zone_t *rootzone = NULL;
- (void)dns_view_findzone(view, dns_rootname, &rootzone);
+ (void)dns_view_findzone(view, dns_rootname, DNS_ZTFIND_EXACT,
+ &rootzone);
if (rootzone != NULL) {
dns_zone_detach(&rootzone);
need_hints = false;
/*
* This zone already exists.
*/
- (void)dns_view_findzone(view, name, &zone);
+ (void)dns_view_findzone(view, name, DNS_ZTFIND_EXACT,
+ &zone);
if (zone != NULL) {
dns_zone_detach(&zone);
continue;
}
if (pview != NULL) {
- (void)dns_view_findzone(pview, name, &zone);
+ (void)dns_view_findzone(
+ pview, name, DNS_ZTFIND_EXACT, &zone);
dns_view_detach(&pview);
}
CHECK(dns_name_fromstring(
name, zones[ipv4only_zone].name, 0, NULL));
- (void)dns_view_findzone(view, name, &zone);
+ (void)dns_view_findzone(view, name, DNS_ZTFIND_EXACT,
+ &zone);
if (zone != NULL) {
dns_zone_detach(&zone);
continue;
}
if (pview != NULL) {
- (void)dns_view_findzone(pview, name, &zone);
+ (void)dns_view_findzone(
+ pview, name, DNS_ZTFIND_EXACT, &zone);
dns_view_detach(&pview);
}
goto cleanup;
}
- result = dns_view_findzone(otherview, origin, &zone);
+ result = dns_view_findzone(otherview, origin, DNS_ZTFIND_EXACT,
+ &zone);
dns_view_detach(&otherview);
if (result != ISC_R_SUCCESS) {
cfg_obj_log(zconfig, named_g_lctx, ISC_LOG_ERROR,
/*
* Check for duplicates in the new zone table.
*/
- result = dns_view_findzone(view, origin, &dupzone);
+ result = dns_view_findzone(view, origin, DNS_ZTFIND_EXACT,
+ &dupzone);
if (result == ISC_R_SUCCESS) {
/*
* We already have this zone!
goto cleanup;
}
if (pview != NULL) {
- result = dns_view_findzone(pview, origin, &zone);
+ result = dns_view_findzone(pview, origin, DNS_ZTFIND_EXACT,
+ &zone);
}
if (result != ISC_R_NOTFOUND && result != ISC_R_SUCCESS) {
goto cleanup;
return;
}
- result2 = dns_view_findzone(pview, origin, &zone);
+ result2 = dns_view_findzone(pview, origin, DNS_ZTFIND_EXACT, &zone);
if (result2 != ISC_R_SUCCESS) {
dns_view_detach(&pview);
return;
result = ISC_R_NOTFOUND;
}
} else {
- result = dns_view_findzone(view, name, zonep);
+ result = dns_view_findzone(view, name, DNS_ZTFIND_EXACT,
+ zonep);
}
if (result != ISC_R_SUCCESS) {
snprintf(problem, sizeof(problem),
result = (view->redirect == NULL) ? ISC_R_NOTFOUND
: ISC_R_EXISTS;
} else {
- result = dns_view_findzone(view, name, &zone);
+ result = dns_view_findzone(view, name, DNS_ZTFIND_EXACT, &zone);
if (result == ISC_R_SUCCESS) {
result = ISC_R_EXISTS;
}
}
dns_zone_attach(view->redirect, &zone);
} else {
- result = dns_view_findzone(view, name, &zone);
+ result = dns_view_findzone(view, name, DNS_ZTFIND_EXACT, &zone);
if (result != ISC_R_SUCCESS) {
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR,
result = ISC_R_NOTFOUND;
}
} else {
- result = dns_view_findzone(view, name, &zone);
+ result = dns_view_findzone(view, name, DNS_ZTFIND_EXACT, &zone);
}
if (result != ISC_R_SUCCESS) {
goto cleanup;
}
dns_zone_attach(view->redirect, &zone);
} else {
- CHECK(dns_view_findzone(view, name, &zone));
+ CHECK(dns_view_findzone(view, name, DNS_ZTFIND_EXACT, &zone));
}
#ifndef HAVE_LMDB