mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
ungetting eof tokens could trigger an assertion.
This commit is contained in:
parent
3cd88f71b0
commit
09ce346fd8
1 changed files with 3 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: lex.c,v 1.45 2000/11/15 00:42:53 bwelling Exp $ */
|
||||
/* $Id: lex.c,v 1.46 2000/11/16 03:03:16 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -780,7 +780,8 @@ isc_lex_ungettoken(isc_lex_t *lex, isc_token_t *tokenp) {
|
|||
source = HEAD(lex->sources);
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(tokenp != NULL);
|
||||
REQUIRE(isc_buffer_consumedlength(source->pushback) != 0);
|
||||
REQUIRE(isc_buffer_consumedlength(source->pushback) != 0 ||
|
||||
tokenp->type == isc_tokentype_eof);
|
||||
|
||||
UNUSED(tokenp);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue