svn commit: r247994 - stable/8/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Fri Mar 8 00:17:58 UTC 2013
Author: tuexen
Date: Fri Mar 8 00:17:57 2013
New Revision: 247994
URL: http://svnweb.freebsd.org/changeset/base/247994
Log:
MFC r240842:
Fix a bug related to handling Re-config chunks. It is not true that
the association can be removed if the socket is gone.
Modified:
stable/8/sys/netinet/sctp_input.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/netinet/ (props changed)
Modified: stable/8/sys/netinet/sctp_input.c
==============================================================================
--- stable/8/sys/netinet/sctp_input.c Fri Mar 8 00:16:17 2013 (r247993)
+++ stable/8/sys/netinet/sctp_input.c Fri Mar 8 00:17:57 2013 (r247994)
@@ -5387,23 +5387,6 @@ process_control_chunks:
*offset = length;
return (NULL);
}
- if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) {
- /* We are not interested anymore */
-#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
- so = SCTP_INP_SO(inp);
- 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
- (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, SCTP_FROM_SCTP_INPUT + SCTP_LOC_30);
-#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
- SCTP_SOCKET_UNLOCK(so, 1);
-#endif
- *offset = length;
- return (NULL);
- }
if (stcb->asoc.peer_supports_strreset == 0) {
/*
* hmm, peer should have announced this, but
More information about the svn-src-stable-8
mailing list