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/netinet6 | |
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/netinet6')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index fd8db0f..ca72838 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -1034,7 +1034,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p) return (EALREADY); } /* We are GOOD to go */ - stcb = sctp_aloc_assoc(inp, addr, 1, &error, 0, vrf_id); + stcb = sctp_aloc_assoc(inp, addr, 1, &error, 0, vrf_id, p); SCTP_ASOC_CREATE_UNLOCK(inp); if (stcb == NULL) { /* Gak! no memory */ |