mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
SSL SCT/OCSP: small fixes by robin; mostly update comments.
SetMime now only works on the first call (as it was documented) and unused code was used from one of the x.509 functions.
This commit is contained in:
parent
db15773c09
commit
d5678418da
7 changed files with 23 additions and 11 deletions
|
@ -118,6 +118,12 @@ string Manager::DataIn(const u_char* data, uint64 len, uint64 offset,
|
|||
if ( ! file )
|
||||
return "";
|
||||
|
||||
// This only has any effect when
|
||||
// * called for the first time for a file
|
||||
// * being called before file->DataIn is called for the first time (before data is
|
||||
// added to the bof buffer).
|
||||
// Afterwards SetMime just ignores what is passed to it. Thus this only has effect during
|
||||
// the first Manager::DataIn call for each file.
|
||||
if ( ! mime_type.empty() )
|
||||
file->SetMime(mime_type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue