diff options
Diffstat (limited to 'stream_handler.go')
-rw-r--r-- | stream_handler.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stream_handler.go b/stream_handler.go index 4d33b01..bccdeee 100644 --- a/stream_handler.go +++ b/stream_handler.go @@ -63,12 +63,14 @@ func (sh *StreamHandler) Reassembled(reassembly []tcpassembly.Reassembly) { for _, r := range reassembly { skip := r.Skip if r.Start { - skip = 0 sh.firstPacketSeen = r.Seen } if r.End { sh.lastPacketSeen = r.Seen } + if skip < 0 { // start or flush ~ workaround + skip = 0 + } reassemblyLen := len(r.Bytes) if reassemblyLen == 0 { |