From c616247d90aff295c9dbb580584c931de180eab9 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 12 May 2022 18:08:28 +0300 Subject: [PATCH] Fix `rewind` #run_acceptance_tests --- tap/tcp_reader.go | 1 + 1 file changed, 1 insertion(+) 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) }