-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ERROR - next statement used outside of for or while statement #87
Comments
Fix provided on Github by @benjeems. See <salesforce/ja3#87>
Nice catch! |
address #87 next statement used outside of for or while statement
This can be closed now that #90 has been merged. Thanks @benjeems and @mmguero and @Cable-2-5 . |
I use zeek version 6 with '@load ja3' since 1 year without problem. The environment is Ubuntu 22.04.3 LTS under WSL in Windows 11 |
A next statement in the ja3.zeek errors out in Zeek v5.2 and above. It should be a return statement.
From https://github.com/zeek/zeek/blob/master/NEWS:
break
andnext
statements is now validated. It was previouslypossible to place these outside of
for
,while
orswitch
statements without any error indication.
Output when running the package errors out:
error in ./ja3/zeek/./ja3.zeek, line 69: next statement used outside of for or while statement
Offending code:
event ssl_extension(c: connection, is_orig: bool, code: count, val: string)
{
if ( ! c?$tlsfp )
c$tlsfp=TLSFPStorage();
if ( is_orig == T ) {
if ( code in grease ) {
next;
}
...
The text was updated successfully, but these errors were encountered: