mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Simplify reassembly code using DataBlockList::LastBlock()
This commit is contained in:
parent
5ce68bd20a
commit
1253a61340
5 changed files with 15 additions and 6 deletions
|
@ -29,7 +29,7 @@ uint64_t FileReassembler::Flush()
|
|||
if ( block_list.Empty() )
|
||||
return 0;
|
||||
|
||||
const auto& last_block = std::prev(block_list.End())->second;
|
||||
const auto& last_block = block_list.LastBlock();
|
||||
|
||||
// This is expected to call back into FileReassembler::Undelivered().
|
||||
flushing = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue