From 5aeb449a34efac743e4494ab48995a916af9d62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Mert=20Y=C4=B1ld=C4=B1ran?= Date: Thu, 12 May 2022 13:27:29 +0300 Subject: [PATCH] Update tap/tcp_reader.go Co-authored-by: Nimrod Gilboa Markevich <59927337+nimrod-up9@users.noreply.github.com> --- tap/tcp_reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap/tcp_reader.go b/tap/tcp_reader.go index 6f46e7a0a..471c2513d 100644 --- a/tap/tcp_reader.go +++ b/tap/tcp_reader.go @@ -54,7 +54,7 @@ func (reader *tcpReader) run(options *api.TrafficFilteringOptions, wg *sync.Wait reader.counterPair = reader.parent.counterPairs[i] b := bufio.NewReader(reader) err := extension.Dissector.Dissect(b, reader, options) - if err == nil || reader.isProtocolIdentified() { + if reader.isProtocolIdentified() { break } reader.rewind()