]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] remove no-longer-needed check for nonexistence
authorEvan Hunt <each@isc.org>
Thu, 5 Oct 2017 18:35:23 +0000 (11:35 -0700)
committerEvan Hunt <each@isc.org>
Thu, 5 Oct 2017 18:35:23 +0000 (11:35 -0700)
bin/named/server.c

index 5ae183a5ac4159132728ed9de9bdc47768b6aeb0..17eb5e5d2dfb61b001b6ac1b8143f334b0172625 100644 (file)
@@ -6908,6 +6908,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);
@@ -6934,11 +6935,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(named_g_lctx,
                              NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER,