summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2016-01-16 18:08:05 +0000
committertuexen <tuexen@FreeBSD.org>2016-01-16 18:08:05 +0000
commit3f469327b2218f53eb6581518744d44c40aeb535 (patch)
tree54f6de74db08a6c4ed939aa45950dd00efc6e4ce /sys/netinet
parent77521945a3e5ddb68cda72bb9e983d629929de5f (diff)
downloadFreeBSD-src-3f469327b2218f53eb6581518744d44c40aeb535.zip
FreeBSD-src-3f469327b2218f53eb6581518744d44c40aeb535.tar.gz
MFC r290468:
Use the correct length. The wrong one was too large.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp_indata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c
index 3f00c24..9c72d8b 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;
}
OpenPOWER on IntegriCloud