From aa51fc810657451e73b5bc47270e406ebd2db4c8 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 13 Nov 2001 06:34:59 +0000 Subject: [PATCH] 1119. [bug] Errors in options were not fatal. [RT #2002] --- lib/bind9/check.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/bind9/check.c b/lib/bind9/check.c index 2fd1589962..c7f4e92a32 100644 --- a/lib/bind9/check.c +++ b/lib/bind9/check.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: check.c,v 1.7 2001/11/09 03:34:53 marka Exp $ */ +/* $Id: check.c,v 1.8 2001/11/13 06:34:59 marka Exp $ */ #include @@ -486,8 +486,9 @@ bind9_check_namedconf(cfg_obj_t *config, isc_log_t *logctx, isc_mem_t *mctx) { (void)cfg_map_get(config, "options", &options); - if (options != NULL) - check_options(options, logctx); + if (options != NULL && + check_options(options, logctx) != ISC_R_SUCCESS) + result = ISC_R_FAILURE; (void)cfg_map_get(config, "view", &views);