summaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_output.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2014-09-07 18:05:37 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2014-09-07 18:05:37 +0000
commitad234e3c3def2b73f1391a64defb5aac01b51281 (patch)
tree428e48861a6c44ba677f1db46d3d9b6f7952b9a9 /sys/netinet/sctp_output.c
parent23602b60fbd7a12c7fec00e6b47a62ced1528d9d (diff)
downloadsrc-test2-ad234e3c3def2b73f1391a64defb5aac01b51281.tar.gz
src-test2-ad234e3c3def2b73f1391a64defb5aac01b51281.zip
Notes
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r--sys/netinet/sctp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 839d8e2f18e9..6dfc5cff0005 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -5921,8 +5921,8 @@ do_a_abort:
parameter_len = (uint16_t) sizeof(struct sctp_paramhdr);
ph = (struct sctp_paramhdr *)(mtod(m, caddr_t)+chunk_len);
ph->param_type = htons(SCTP_HAS_NAT_SUPPORT);
- ph->param_length = htons(sizeof(struct sctp_paramhdr));
- chunk_len += sizeof(struct sctp_paramhdr);
+ ph->param_length = htons(parameter_len);
+ chunk_len += parameter_len;
}
/* And now tell the peer which extensions we support */
num_ext = 0;