From: Brian Wellington Date: Mon, 2 Jul 2001 17:55:55 +0000 (+0000) Subject: 919. [bug] rndc would segfault when rndc.conf was missing the X-Git-Tag: v9.1.3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff18c36a1f4fedf4bebd886d832990f1c79aacb;p=thirdparty%2Fbind9.git 919. [bug] rndc would segfault when rndc.conf was missing the closing brace. [RT #1461] --- diff --git a/CHANGES b/CHANGES index 66996dccf62..7b1f918108d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,7 @@ + 919. [bug] rndc would segfault when rndc.conf was missing the + closing brace. [RT #1461] + --- 9.1.3rc3 released --- 911. [bug] Fail gracefully with multiple hint zones. [RT #1433] diff --git a/lib/dns/config/confndc.c b/lib/dns/config/confndc.c index e566ca36338..a7ed2e365c9 100644 --- a/lib/dns/config/confndc.c +++ b/lib/dns/config/confndc.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: confndc.c,v 1.25.4.3 2001/06/28 00:44:45 gson Exp $ */ +/* $Id: confndc.c,v 1.25.4.4 2001/07/02 17:55:55 bwelling Exp $ */ /* ** options { @@ -1177,6 +1177,11 @@ parse_keystmt(ndcpcontext *pctx, dns_c_kdeflist_t *keys) { while (pctx->currtok != L_RBRACE) { isc_uint32_t field = pctx->currtok; + if (field == L_END_INPUT) { + parser_error(pctx, ISC_TRUE, + "unexpected end of input"); + return (ISC_R_FAILURE); + } if (!eat(pctx, field)) { result = ISC_R_FAILURE; goto done;