mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Fix issue w/ duplicate TCP reassembly deliveries.
Due to the change in f1cef9d2a9
, it was possible for the TCP reassembler
to deliver the same data twice because Undelivered did not take in to
account that the reassembly stream could now advance past the end of the
gap.
Addresses BIT-1259.
This commit is contained in:
parent
4d6a8b540f
commit
dae80fc119
3 changed files with 8 additions and 2 deletions
|
@ -267,7 +267,8 @@ void TCP_Reassembler::Undelivered(uint64 up_to_seq)
|
|||
MatchUndelivered(up_to_seq, false);
|
||||
|
||||
// But we need to re-adjust last_reassem_seq in either case.
|
||||
last_reassem_seq = up_to_seq; // we've done our best ...
|
||||
if ( up_to_seq > last_reassem_seq )
|
||||
last_reassem_seq = up_to_seq; // we've done our best ...
|
||||
}
|
||||
|
||||
void TCP_Reassembler::MatchUndelivered(uint64 up_to_seq, bool use_last_upper)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue