Skip to content

Commit

Permalink
Merge pull request #3 from pbcullen/topic/pbcullen/check-conns-before…
Browse files Browse the repository at this point in the history
…-use

Check f$conns before use
  • Loading branch information
sethhall authored Jul 30, 2022
2 parents a45ee19 + 17c37af commit d4deebf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/main.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,13 @@ function check_ssns(c: connection, data: string): bool
event SsnExposure::stream_data(f: fa_file, data: string)
{
local c: connection;
for ( id in f$conns )
if ( f?$conns )
{
c = f$conns[id];
break;
for ( id in f$conns )
{
c = f$conns[id];
break;
}
}
if ( c$start_time > network_time()-10secs )
check_ssns(c, data);
Expand Down

0 comments on commit d4deebf

Please sign in to comment.