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 {