summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_indata.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-07-21 21:41:32 +0000
committerrrs <rrs@FreeBSD.org>2007-07-21 21:41:32 +0000
commit1918b8aea1b783fd107c45b78b7634bc87e85b0d (patch)
treec2edc32d56ce6b03518615a225c4c10558ee679e /sys/netinet/sctp_indata.c
parent5eb246dfe4a78e28f4d05c5cb07e44a47b179e82 (diff)
downloadFreeBSD-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_indata.c')
-rw-r--r--sys/netinet/sctp_indata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c
index 27bdfd2..30aa980 100644
--- a/sys/netinet/sctp_indata.c
+++ b/sys/netinet/sctp_indata.c
@@ -3474,6 +3474,7 @@ sctp_strike_gap_ack_chunks(struct sctp_tcb *stcb, struct sctp_association *asoc,
* use the CMT version of
* find_alt_net()
*/
+ /* sa_ignore NO_NULL_CHK */
alt = sctp_find_alternate_net(stcb, alt, 1);
}
if (alt == NULL) {
OpenPOWER on IntegriCloud