mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
FileAnalysis: fix access of invalidated std::map iterator.
This commit is contained in:
parent
497496ec83
commit
621fe51c82
2 changed files with 4 additions and 3 deletions
|
@ -77,7 +77,7 @@ void Info::StaticInit()
|
|||
}
|
||||
|
||||
Info::Info(const string& unique, Connection* conn, AnalyzerTag::Tag tag)
|
||||
: file_id(unique), unique(unique), val(0), postpone_timeout(false),
|
||||
: file_id(""), unique(unique), val(0), postpone_timeout(false),
|
||||
need_reassembly(false), done(false), actions(this)
|
||||
{
|
||||
StaticInit();
|
||||
|
@ -338,13 +338,14 @@ void Info::DataIn(const u_char* data, uint64 len)
|
|||
void Info::EndOfFile()
|
||||
{
|
||||
if ( done ) return;
|
||||
done = true;
|
||||
|
||||
actions.DrainModifications();
|
||||
|
||||
// Send along anything that's been buffered, but never flushed.
|
||||
ReplayBOF();
|
||||
|
||||
done = true;
|
||||
|
||||
Action* act = 0;
|
||||
IterCookie* c = actions.InitForIteration();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue