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:
tuexen 2014-10-06 13:16:37 +00:00
parent 0be9f8014d
commit df8c240c19

View File

@ -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;
}