mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Fix truncated tcp check
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*.bin
|
||||
|
||||
*.gz
|
||||
*.zip
|
||||
|
||||
*.class
|
||||
|
||||
@@ -17,3 +18,5 @@ gor
|
||||
*.mprof
|
||||
|
||||
*.pcap
|
||||
|
||||
.DS_Store
|
||||
|
||||
@@ -465,7 +465,7 @@ func (t *Listener) readPcap() {
|
||||
}
|
||||
|
||||
// Truncated TCP info
|
||||
if len(data) < 13 {
|
||||
if len(data) <= 13 {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user