mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
When pcap_compile() detects an error, it longjmp()'s out of the
scanner/parser. FreeBSD recently made 'flex' its default implementation of 'lex'. One of the incompatibilities of 'flex' vs. 'lex' is that if you longjmp() out of the scanner, you must call yyrestart() before doing another scan (as documented in flex(1)). So add an invocation to yyrestart() in lex_init(). This change should be backwards compatible with the original 'lex'. PR: bin/24116
This commit is contained in:
parent
ad4032fe09
commit
dceab8ea63
1 changed files with 1 additions and 0 deletions
|
|
@ -273,6 +273,7 @@ lex_init(buf)
|
|||
char *buf;
|
||||
{
|
||||
in_buffer = buf;
|
||||
yyrestart(NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue