From: Jason A. Donenfeld Date: Wed, 23 May 2018 16:30:55 +0000 (+0200) Subject: No zero sequence numbers X-Git-Tag: 0.0.20180524~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c6513d60557b626503be6c340b91574040c3f0;p=thirdparty%2Fwireguard-go.git No zero sequence numbers --- 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 }