Remove duplicate code, which is not protected by the appropriate locks.

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2016-08-22 00:40:45 +00:00
parent 77ecef378a
commit 26a5d52f03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304573

View File

@ -1506,11 +1506,6 @@ sctp_do_connect_x(struct socket *so, struct sctp_inpcb *inp, void *optval,
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);