Skip to content

Commit

Permalink
address salesforce#87 next statement used outside of for or while sta…
Browse files Browse the repository at this point in the history
…tement
  • Loading branch information
mmguero committed Mar 14, 2023
1 parent 382cd37 commit 52c665a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions zeek/ja3.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ event zeek_init() {

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;
return;
}
if ( ! c?$tlsfp ){
c$tlsfp=TLSFPStorage();
}
if ( c$tlsfp$extensions == "" ) {
c$tlsfp$extensions = cat(code);
Expand All @@ -77,11 +78,12 @@ if ( ! c?$tlsfp )
}
}


event ssl_extension_ec_point_formats(c: connection, is_orig: bool, point_formats: index_vec)
{
if ( !c?$tlsfp )
c$tlsfp=TLSFPStorage();
if ( is_orig == T ) {
if ( !c?$tlsfp )
c$tlsfp=TLSFPStorage();
for ( i in point_formats ) {
if ( point_formats[i] in grease ) {
next;
Expand Down

0 comments on commit 52c665a

Please sign in to comment.