From e8af4e152413190e5553c2fb3074a1cc689c6cef Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 22 Jan 2001 02:46:34 +0000 Subject: [PATCH] 699. [bug] The lexer mishandled empty quoted strings. [RT #694] --- CHANGES | 2 ++ lib/isc/lex.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 9633f5ce90..d3968eedbf 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,6 @@ + 699. [bug] The lexer mishandled empty quoted strings. [RT #694] + 698. [bug] Aborting nsupdate with ^C would lead to several race conditions. diff --git a/lib/isc/lex.c b/lib/isc/lex.c index 8cd25a0d0c..867c37b670 100644 --- a/lib/isc/lex.c +++ b/lib/isc/lex.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lex.c,v 1.60 2001/01/16 07:47:16 marka Exp $ */ +/* $Id: lex.c,v 1.61 2001/01/22 02:46:34 gson Exp $ */ #include @@ -419,6 +419,8 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) { options &= ~IWSEOL; curr = lex->data; + *curr = '\0'; + prev = NULL; remaining = lex->max_token; do {