SCT: Fix script error when mime type of file unknown.

This commit is contained in:
Johanna Amann 2017-05-14 19:53:22 -07:00
parent 7a1ec3501d
commit 8af810e00b

View file

@ -96,6 +96,9 @@ event file_sniff(f: fa_file, meta: fa_metadata) &priority=5
if ( |f$conns| != 1 ) if ( |f$conns| != 1 )
return; 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" 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" ) ) || f$info$mime_type == "application/pkix-cert" ) )
return; return;