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:
Seth Hall 2020-01-14 10:53:02 -05:00 committed by GitHub
parent 9c353f56f1
commit d9ed76c90a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ event zeek_init() &priority=5
event file_sniff(f: fa_file, meta: fa_metadata) &priority=5 event file_sniff(f: fa_file, meta: fa_metadata) &priority=5
{ {
if ( |f$conns| != 1 ) if ( ! f?$conns || |f$conns| != 1 )
return; return;
if ( ! f?$info || ! f$info?$mime_type ) if ( ! f?$info || ! f$info?$mime_type )