[v9_11] remove no-longer-needed check for nonexistence
This commit is contained in:
+1
-5
@@ -6514,6 +6514,7 @@ static isc_result_t
|
||||
count_newzones(dns_view_t *view, ns_cfgctx_t *nzcfg, int *num_zonesp) {
|
||||
isc_result_t result;
|
||||
|
||||
/* The new zone file may not exist. That is OK. */
|
||||
if (!isc_file_exists(view->new_zone_file)) {
|
||||
*num_zonesp = 0;
|
||||
return (ISC_R_SUCCESS);
|
||||
@@ -6540,11 +6541,6 @@ count_newzones(dns_view_t *view, ns_cfgctx_t *nzcfg, int *num_zonesp) {
|
||||
view->new_zone_file, num_zones);
|
||||
if (num_zonesp != NULL)
|
||||
*num_zonesp = num_zones;
|
||||
} else if (result == ISC_R_FILENOTFOUND) {
|
||||
/* The new zone file may not exist. That is OK. */
|
||||
result = ISC_R_SUCCESS;
|
||||
if (num_zonesp != NULL)
|
||||
*num_zonesp = 0;
|
||||
} else {
|
||||
isc_log_write(ns_g_lctx,
|
||||
NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER,
|
||||
|
||||
Reference in New Issue
Block a user