summaryrefslogtreecommitdiffhomepage
path: root/conn_linux.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-23 18:30:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-23 18:30:55 +0200
commit99c6513d60557b626503be6c340b91574040c3f0 (patch)
tree16b7660e0c0462c556ed5f704a37aed232da0d23 /conn_linux.go
parent8a92a9109aa8214b18a020b6ab2b5a9dd9350a45 (diff)
No zero sequence numbers
Diffstat (limited to 'conn_linux.go')
-rw-r--r--conn_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/conn_linux.go b/conn_linux.go
index fe30afb..3447f3a 100644
--- a/conn_linux.go
+++ b/conn_linux.go
@@ -584,7 +584,7 @@ func (bind *NativeBind) routineRouteListener(device *Device) {
switch hdr.Type {
case unix.RTM_NEWROUTE, unix.RTM_DELROUTE:
- if hdr.Seq <= MaxPeers {
+ if hdr.Seq <= MaxPeers && hdr.Seq > 0 {
if uint(len(remain)) < uint(hdr.Len) {
break
}