MFC r272296:
When plen != ulen, it should only be checked when this is UDP. The commit is from kevlo and he agreed that I MFC it as part of the UDPLite fixes.
This commit is contained in:
parent
0be9f8014d
commit
df8c240c19
@ -230,7 +230,7 @@ udp6_input(struct mbuf **mp, int *offp, int proto)
|
||||
ulen = plen;
|
||||
cscov_partial = 0;
|
||||
}
|
||||
if (plen != ulen) {
|
||||
if (nxt == IPPROTO_UDP && plen != ulen) {
|
||||
UDPSTAT_INC(udps_badlen);
|
||||
goto badunlocked;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user