Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2014 13:16:38 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r272628 - stable/10/sys/netinet6
Message-ID:  <201410061316.s96DGcFq076649@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410061316.s96DGcFq076649>