diff options
author | Internet Software Consortium, Inc <@isc.org> | 2007-11-15 21:13:31 -0700 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2007-11-15 21:13:31 -0700 |
commit | 14844197c23f37b19e272cb34cb6f0f862598d36 (patch) | |
tree | d12bb00afd217ab6cfcc1aa9d2754ef8a693f69b /lib/isc/lex.c | |
parent | 10df5197b0b46b9f8e34b3855e9373c00c63b5a9 (diff) | |
download | bind9-14844197c23f37b19e272cb34cb6f0f862598d36.tar.gz |
9.5.0a7
Diffstat (limited to 'lib/isc/lex.c')
-rw-r--r-- | lib/isc/lex.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/isc/lex.c b/lib/isc/lex.c index 8d5b4219..8749ed0b 100644 --- a/lib/isc/lex.c +++ b/lib/isc/lex.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lex.c,v 1.85 2007/06/19 23:47:17 tbox Exp $ */ +/* $Id: lex.c,v 1.86 2007/09/17 09:56:29 shane Exp $ */ /*! \file */ @@ -720,11 +720,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) { state = lexstate_ccomment; break; case lexstate_eatline: - if (c == EOF) { - result = ISC_R_UNEXPECTEDEND; - goto done; - } - if (c == '\n') { + if ((c == '\n') || (c == EOF)) { no_comments = ISC_FALSE; state = saved_state; goto no_read; |