From: tuexen Date: Fri, 6 Nov 2015 22:08:05 +0000 (+0000) Subject: Use the correct length. The wrong one was too large. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=61b7939ede317ab92362310c143057c107ca849d;p=people%2Fliuw%2Ffreebsd.git Use the correct length. The wrong one was too large. MFC after: 3 days --- diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c index 3f00c24f7fd..9c72d8bd124 100644 --- a/sys/netinet/sctp_indata.c +++ b/sys/netinet/sctp_indata.c @@ -225,7 +225,7 @@ sctp_build_ctl_nchunk(struct sctp_inpcb *inp, struct sctp_sndrcvinfo *sinfo) 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; }