diff --git a/tap/tcp_reader.go b/tap/tcp_reader.go index 3627590ad..4f6205973 100644 --- a/tap/tcp_reader.go +++ b/tap/tcp_reader.go @@ -83,6 +83,7 @@ func (reader *tcpReader) isProtocolIdentified() bool { } func (reader *tcpReader) rewind() { + reader.data = make([]byte, len(reader.pastData)) copy(reader.data, reader.pastData) }