diff options
author | rrs <rrs@FreeBSD.org> | 2007-07-21 21:41:32 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-07-21 21:41:32 +0000 |
commit | 1918b8aea1b783fd107c45b78b7634bc87e85b0d (patch) | |
tree | c2edc32d56ce6b03518615a225c4c10558ee679e /sys/netinet/sctp_output.c | |
parent | 5eb246dfe4a78e28f4d05c5cb07e44a47b179e82 (diff) | |
download | FreeBSD-src-1918b8aea1b783fd107c45b78b7634bc87e85b0d.zip FreeBSD-src-1918b8aea1b783fd107c45b78b7634bc87e85b0d.tar.gz |
- remove duplicate code from sctp_asconf.c
- remove duplicate #include <sys/priv.h> that is not under
#ifdef FreeBSD version to allow compile on 6.1
- static analysis changes per the cisco SA tool including:
o some SA_IGNORE comments
o some checks for NULL before unlock.
o type corrections int -> size_t
- Fix it so sctp_alloc_asoc takes a thread/proc argument. Without this
we pass a NULL in to bind on implicit assoc setup and crash :-(
Approved by: re@freebsd.org(Ken Smith)
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r-- | sys/netinet/sctp_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 4ebeae6..a46c782 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -10965,7 +10965,9 @@ sctp_lower_sosend(struct socket *so, } /* get an asoc/stcb struct */ vrf_id = inp->def_vrf_id; - stcb = sctp_aloc_assoc(inp, addr, 1, &error, 0, vrf_id); + stcb = sctp_aloc_assoc(inp, addr, 1, &error, 0, vrf_id, + p + ); if (stcb == NULL) { /* Error is setup for us in the call */ goto out_unlocked; |