diff --git a/tap/tcp_reader.go b/tap/tcp_reader.go index 471c2513d..3f9d014a2 100644 --- a/tap/tcp_reader.go +++ b/tap/tcp_reader.go @@ -83,7 +83,7 @@ func (reader *tcpReader) isProtocolIdentified() bool { } func (reader *tcpReader) rewind() { - reader.data = reader.pastData + copy(reader.data, reader.pastData) } func (reader *tcpReader) Read(p []byte) (int, error) {