aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/udp6_usrreq.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2014-09-30 07:28:31 +0000
committerKevin Lo <kevlo@FreeBSD.org>2014-09-30 07:28:31 +0000
commit0bc40ebf0060d0644fb1f421d34c89d6a21a2ec0 (patch)
treea315aa5a64eb921884cc679b98d597de21ab7beb /sys/netinet6/udp6_usrreq.c
parent1b65908ea7a8111bdcd0457fc8af93c44a3c1d9b (diff)
Notes
Diffstat (limited to 'sys/netinet6/udp6_usrreq.c')
-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 14feb739fd2b0..d90d1971c7a76 100644
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -232,7 +232,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;
}