summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_timer.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-05-17 12:16:24 +0000
committerrrs <rrs@FreeBSD.org>2007-05-17 12:16:24 +0000
commitf03ff79b8eb759f4448ea239b33f54a4de64e72b (patch)
tree9c331efc7294abb10b0a637e060b8adcbb36b8be /sys/netinet/sctp_timer.c
parent471f392f70d74931953e70708e2b2883ec00fcdd (diff)
downloadFreeBSD-src-f03ff79b8eb759f4448ea239b33f54a4de64e72b.zip
FreeBSD-src-f03ff79b8eb759f4448ea239b33f54a4de64e72b.tar.gz
- Fixed 1-2-1 model to not worry about associd in sockopts
- Fixed RTOinfo for bounding. - Fixed connect() to return ECONNREFUSED when an ABORT is received. - Added comments to direct Static Analysis not to look at some things it does not understand (comments are /* sa_ignore XXXXX */) - Bind when colliding was broken, missing not_found = 1 before checking to see if the port was in use caused endless bind loop. - Cookie life needs to be in milliseconds to conform to socket api. - Cookie life is not supposed to change if its 0, On the assoc level set we changed it to 0 opps. - Two more static analysis issues identified by the cisco tool. Null checks needed. - An issue for sendfile(). Need to validate the correct input argument. - When sending failed due to a no route to host, we leaked the mbuf chain failing to call m_freem(). - Fix #ifdef issue for getting hash block len when HAVE_SHA2 is NOT defined Reviewed by: gnn
Diffstat (limited to 'sys/netinet/sctp_timer.c')
-rw-r--r--sys/netinet/sctp_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/sctp_timer.c b/sys/netinet/sctp_timer.c
index b027f0b..d00ff79 100644
--- a/sys/netinet/sctp_timer.c
+++ b/sys/netinet/sctp_timer.c
@@ -346,6 +346,7 @@ sctp_find_alternate_net(struct sctp_tcb *stcb,
if (
((alt->dest_state & SCTP_ADDR_REACHABLE) == SCTP_ADDR_REACHABLE) &&
(alt->ro.ro_rt != NULL) &&
+ /* sa_ignore NO_NULL_CHK */
(!(alt->dest_state & SCTP_ADDR_UNCONFIRMED))
) {
/* Found a reachable address */
@@ -368,6 +369,7 @@ sctp_find_alternate_net(struct sctp_tcb *stcb,
}
alt = TAILQ_FIRST(&stcb->asoc.nets);
}
+ /* sa_ignore NO_NULL_CHK */
if ((!(alt->dest_state & SCTP_ADDR_UNCONFIRMED)) &&
(alt != net)) {
/* Found an alternate address */
OpenPOWER on IntegriCloud