mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Fix possible seg fault in TCP reassembler.
This commit is contained in:
parent
cce09b75de
commit
c7354c6fa0
3 changed files with 8 additions and 2 deletions
|
@ -249,7 +249,9 @@ void TCP_Reassembler::Undelivered(uint64 up_to_seq)
|
|||
Gap(gap_at_seq, gap_len);
|
||||
last_reassem_seq += gap_len;
|
||||
BlockInserted(b);
|
||||
b = b->next;
|
||||
// Inserting a block may cause trimming of what's buffered,
|
||||
// so have to assume 'b' is invalid, hence re-assign to start.
|
||||
b = blocks;
|
||||
}
|
||||
|
||||
if ( up_to_seq > last_reassem_seq )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue