From df8c240c190af94bace52f5a233537cc4ceb4b08 Mon Sep 17 00:00:00 2001 From: tuexen Date: Mon, 6 Oct 2014 13:16:37 +0000 Subject: [PATCH] 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. --- sys/netinet6/udp6_usrreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index faa6427cf0ae..0d685902bd99 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -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; }