Fix type check, and add asserts submodule

This commit is contained in:
Leonid Bugaev
2016-07-07 18:41:29 +03:00
parent a5cc943af4
commit 12287d8bae
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
+1 -1
View File
@@ -441,7 +441,7 @@ func (t *Listener) readPcap() {
}
// Invalid length
if ihl * 4 > ipLength {
if int(ihl * 4) > ipLength {
continue
}