summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_output.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-06-12 11:21:00 +0000
committerrrs <rrs@FreeBSD.org>2007-06-12 11:21:00 +0000
commit1cd5c5dd060ed74ed2778ad4f459ed32f0ad4a8a (patch)
tree8ceb26064a095a4ca496c0d65130e07c6bab67a1 /sys/netinet/sctp_output.c
parent59136b3a6d401102fb2c9ec125e4155ad39526cf (diff)
downloadFreeBSD-src-1cd5c5dd060ed74ed2778ad4f459ed32f0ad4a8a.zip
FreeBSD-src-1cd5c5dd060ed74ed2778ad4f459ed32f0ad4a8a.tar.gz
- Restructure so bindx functions are not done inline to socket option
but are a seperate call that can be re-used if needed. - 64 bit issues o re-arrange cookie so it is better 64 bit aligned o For wire level things we need the packed attribute.
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r--sys/netinet/sctp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index fda7e447..1e1fc21 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -3120,7 +3120,7 @@ sctp_add_cookie(struct sctp_inpcb *inp, struct mbuf *init, int init_offset,
ph->param_type = htons(SCTP_STATE_COOKIE);
ph->param_length = 0; /* fill in at the end */
/* Fill in the stc cookie data */
- *stc = *stc_in;
+ memcpy(stc, stc_in, sizeof(struct sctp_state_cookie));
/* tack the INIT and then the INIT-ACK onto the chain */
cookie_sz = 0;
OpenPOWER on IntegriCloud