From 99c6513d60557b626503be6c340b91574040c3f0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 23 May 2018 18:30:55 +0200 Subject: [PATCH] No zero sequence numbers --- conn_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }