diff options
author | rrs <rrs@FreeBSD.org> | 2007-09-10 17:06:25 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-09-10 17:06:25 +0000 |
commit | 1b1d8efe7c5c04a996d506e80bd5a2495bd3eeb8 (patch) | |
tree | 3f2005f2098cca5d2196f3fa10ec95b5d77d31b9 /sys/netinet/sctp_input.c | |
parent | ac7ab500b599547badd5a6b24625311f1a03f5fa (diff) | |
download | FreeBSD-src-1b1d8efe7c5c04a996d506e80bd5a2495bd3eeb8.zip FreeBSD-src-1b1d8efe7c5c04a996d506e80bd5a2495bd3eeb8.tar.gz |
- Added some comments to tell where the htcp
code comes from.
- Fix a LOR on Mac OS X: Do not hold an stcb lock when
calling soisconnected for a socket which has the
SS_INCOMP bit set on so_state.
- fix a comment to be non c++ style.
Approved by: re@freebsd.org (B Mah)
Diffstat (limited to 'sys/netinet/sctp_input.c')
-rw-r--r-- | sys/netinet/sctp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index bcc5045..4913368 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -2513,11 +2513,11 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset, atomic_add_int(&(*stcb)->asoc.refcnt, 1); SCTP_TCB_UNLOCK((*stcb)); SCTP_SOCKET_LOCK(so, 1); - SCTP_TCB_LOCK((*stcb)); - atomic_subtract_int(&(*stcb)->asoc.refcnt, 1); #endif soisconnected(so); #if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING) + SCTP_TCB_LOCK((*stcb)); + atomic_subtract_int(&(*stcb)->asoc.refcnt, 1); SCTP_SOCKET_UNLOCK(so, 1); #endif return (m); |