diff --git a/lib/isccfg/check.c b/lib/isccfg/check.c index 2193f924fa..2799e1154b 100644 --- a/lib/isccfg/check.c +++ b/lib/isccfg/check.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: check.c,v 1.2 2001/03/02 01:30:32 bwelling Exp $ */ +/* $Id: check.c,v 1.3 2001/03/02 03:09:27 bwelling Exp $ */ #include @@ -197,7 +197,7 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx) { cfg_obj_t *views = NULL; cfg_obj_t *obj; cfg_listelt_t *velement; - isc_boolean_t result = ISC_R_SUCCESS; + isc_result_t result = ISC_R_SUCCESS; (void)cfg_map_get(config, "view", &views); @@ -262,6 +262,7 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx) { (void)cfg_map_get(config, "options", &options); if (options != NULL) { + obj = NULL; result = cfg_map_get(options, "cache-file", &obj); if (result == ISC_R_SUCCESS) { cfg_obj_log(obj, logctx, ISC_LOG_ERROR, @@ -269,6 +270,7 @@ cfg_check_namedconf(cfg_obj_t *config, isc_log_t *logctx) { "option if views are present"); result = ISC_R_FAILURE; } + result = ISC_R_SUCCESS; } }