summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-10-06 13:16:37 +0000
committertuexen <tuexen@FreeBSD.org>2014-10-06 13:16:37 +0000
commitdf8c240c190af94bace52f5a233537cc4ceb4b08 (patch)
treeb941dc2693e3fba5796bbd74793a1ebf07a36805 /sys/netinet6
parent0be9f8014d258337bc8efe76d354e9c9f4c58091 (diff)
downloadFreeBSD-src-df8c240c190af94bace52f5a233537cc4ceb4b08.zip
FreeBSD-src-df8c240c190af94bace52f5a233537cc4ceb4b08.tar.gz
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.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/udp6_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
index faa6427..0d68590 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;
}
OpenPOWER on IntegriCloud