mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
SCT: Fix script error when mime type of file unknown.
This commit is contained in:
parent
7a1ec3501d
commit
8af810e00b
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ event file_sniff(f: fa_file, meta: fa_metadata) &priority=5
|
|||
if ( |f$conns| != 1 )
|
||||
return;
|
||||
|
||||
if ( ! f?$info || ! f$info?$mime_type )
|
||||
return;
|
||||
|
||||
if ( ! ( f$info$mime_type == "application/x-x509-ca-cert" || f$info$mime_type == "application/x-x509-user-cert"
|
||||
|| f$info$mime_type == "application/pkix-cert" ) )
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue