mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Fix type check, and add asserts submodule
This commit is contained in:
@@ -7,3 +7,6 @@
|
||||
[submodule "vendor/github.com/bitly/go-hostpool"]
|
||||
path = vendor/github.com/bitly/go-hostpool
|
||||
url = https://github.com/bitly/go-hostpool
|
||||
[submodule "vendor/github.com/bmizerany/assert"]
|
||||
path = vendor/github.com/bmizerany/assert
|
||||
url = https://github.com/bmizerany/assert
|
||||
|
||||
@@ -441,7 +441,7 @@ func (t *Listener) readPcap() {
|
||||
}
|
||||
|
||||
// Invalid length
|
||||
if ihl * 4 > ipLength {
|
||||
if int(ihl * 4) > ipLength {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user