aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}