svn commit: r272628 - stable/10/sys/netinet6

Michael Tuexen tuexen at FreeBSD.org
Mon Oct 6 13:16:38 UTC 2014


Author: tuexen
Date: Mon Oct  6 13:16:37 2014
New Revision: 272628
URL: https://svnweb.freebsd.org/changeset/base/272628

Log:
  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.

Modified:
  stable/10/sys/netinet6/udp6_usrreq.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet6/udp6_usrreq.c
==============================================================================
--- stable/10/sys/netinet6/udp6_usrreq.c	Mon Oct  6 13:12:04 2014	(r272627)
+++ stable/10/sys/netinet6/udp6_usrreq.c	Mon Oct  6 13:16:37 2014	(r272628)
@@ -230,7 +230,7 @@ udp6_input(struct mbuf **mp, int *offp, 
 		ulen = plen;
 		cscov_partial = 0;
 	}
-	if (plen != ulen) {
+	if (nxt == IPPROTO_UDP && plen != ulen) {
 		UDPSTAT_INC(udps_badlen);
 		goto badunlocked;
 	}


More information about the svn-src-stable-10 mailing list