svn commit: r294181 - stable/10/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sat Jan 16 18:08:07 UTC 2016


Author: tuexen
Date: Sat Jan 16 18:08:05 2016
New Revision: 294181
URL: https://svnweb.freebsd.org/changeset/base/294181

Log:
  MFC r290468:
  Use the correct length. The wrong one was too large.

Modified:
  stable/10/sys/netinet/sctp_indata.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctp_indata.c
==============================================================================
--- stable/10/sys/netinet/sctp_indata.c	Sat Jan 16 18:05:24 2016	(r294180)
+++ stable/10/sys/netinet/sctp_indata.c	Sat Jan 16 18:08:05 2016	(r294181)
@@ -225,7 +225,7 @@ sctp_build_ctl_nchunk(struct sctp_inpcb 
 	if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_RECVNXTINFO) &&
 	    (seinfo->serinfo_next_flags & SCTP_NEXT_MSG_AVAIL)) {
 		provide_nxt = 1;
-		len += CMSG_SPACE(sizeof(struct sctp_rcvinfo));
+		len += CMSG_SPACE(sizeof(struct sctp_nxtinfo));
 	} else {
 		provide_nxt = 0;
 	}


More information about the svn-src-all mailing list