svn commit: r304573 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Mon Aug 22 00:40:46 UTC 2016


Author: tuexen
Date: Mon Aug 22 00:40:45 2016
New Revision: 304573
URL: https://svnweb.freebsd.org/changeset/base/304573

Log:
  Remove duplicate code, which is not protected by the appropriate locks.
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_usrreq.c

Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c	Sun Aug 21 18:55:30 2016	(r304572)
+++ head/sys/netinet/sctp_usrreq.c	Mon Aug 22 00:40:45 2016	(r304573)
@@ -1506,11 +1506,6 @@ sctp_do_connect_x(struct socket *so, str
 		sctp_send_initiate(inp, stcb, SCTP_SO_LOCKED);
 	}
 	SCTP_TCB_UNLOCK(stcb);
-	if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) {
-		stcb->sctp_ep->sctp_flags |= SCTP_PCB_FLAGS_CONNECTED;
-		/* Set the connected flag so we can queue data */
-		soisconnecting(so);
-	}
 out_now:
 	if (creat_lock_on) {
 		SCTP_ASOC_CREATE_UNLOCK(inp);


More information about the svn-src-head mailing list