From 1824b43f62c861999a322edb097ab23c724efb25 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 21 Mar 2001 19:01:36 +0000 Subject: [PATCH] parse_mapbody() could return ISC_R_SUCCESS when it failed, triggering an assertion --- lib/isccfg/parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index 91b3f8dae6..2219a6eb6c 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: parser.c,v 1.48 2001/03/19 22:34:12 bwelling Exp $ */ +/* $Id: parser.c,v 1.49 2001/03/21 19:01:36 gson Exp $ */ #include @@ -2325,6 +2325,7 @@ parse_mapbody(cfg_parser_t *pctx, cfg_type_t *type, cfg_obj_t **ret) } else if (result == ISC_R_SUCCESS) { parser_error(pctx, LOG_NEAR, "'%s' redefined", clause->name); + result = ISC_R_EXISTS; goto cleanup; } else { parser_error(pctx, LOG_NEAR,