From 1918b8aea1b783fd107c45b78b7634bc87e85b0d Mon Sep 17 00:00:00 2001 From: rrs Date: Sat, 21 Jul 2007 21:41:32 +0000 Subject: - remove duplicate code from sctp_asconf.c - remove duplicate #include 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) --- sys/netinet/sctp_indata.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netinet/sctp_indata.c') 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) { -- cgit v1.1