diff options
author | rrs <rrs@FreeBSD.org> | 2007-05-30 17:39:45 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-05-30 17:39:45 +0000 |
commit | 00ab510c7cabe5ff0ee618e3e6b7f48fdf9cdbfa (patch) | |
tree | 88cefe357ba00902c5e5d6c978baeaf9a7205cf6 /sys/netinet/sctp_output.c | |
parent | ef5ebf1aa24d4addf10e9ed210cffc0459d3ff10 (diff) | |
download | FreeBSD-src-00ab510c7cabe5ff0ee618e3e6b7f48fdf9cdbfa.zip FreeBSD-src-00ab510c7cabe5ff0ee618e3e6b7f48fdf9cdbfa.tar.gz |
- Fix a memory overwrite when the mapping array
is expanded, size of expansion was not taken int consideration.
- Fix so vtag hash is 1 bigger so that it modulo's out
correctly, avoids a panic when restart with right modulo happens.
- do not dereference stcb when control->do_not_ref_stcb is set
- Fix up packet logging to not often use a lock and also to
add to options.
- Fix some logging option duplication in the sctputil.h
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r-- | sys/netinet/sctp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index e18fbde..a8a506a 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -9529,7 +9529,7 @@ sctp_send_hb(struct sctp_tcb *stcb, int user_req, struct sctp_nets *u_net) atomic_add_int(&chk->whoTo->ref_count, 1); /* Now we have a mbuf that we can fill in with the details */ hb = mtod(chk->data, struct sctp_heartbeat_chunk *); - + memset(hb, 0, sizeof(struct sctp_heartbeat_chunk)); /* fill out chunk header */ hb->ch.chunk_type = SCTP_HEARTBEAT_REQUEST; hb->ch.chunk_flags = 0; |