mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +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
|
@ -205,7 +205,7 @@ void FragReassembler::BlockInserted(DataBlockMap::const_iterator /* it */)
|
|||
++next;
|
||||
}
|
||||
|
||||
const auto& last = std::prev(block_list.End())->second;
|
||||
const auto& last = block_list.LastBlock();
|
||||
|
||||
if ( next != block_list.End() )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue