mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix warning when reading files from non-network sources
If files are being read from non-network sources, there was a warning in the SSL base scripts about missing the f$conns field.
This commit is contained in:
parent
9c353f56f1
commit
d9ed76c90a
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ event zeek_init() &priority=5
|
|||
|
||||
event file_sniff(f: fa_file, meta: fa_metadata) &priority=5
|
||||
{
|
||||
if ( |f$conns| != 1 )
|
||||
if ( ! f?$conns || |f$conns| != 1 )
|
||||
return;
|
||||
|
||||
if ( ! f?$info || ! f$info?$mime_type )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue