Allow shutdown() to be used on fds returned from sctp_peeloff().
MFC after: 3 days
This commit is contained in:
parent
fe02827f92
commit
440da2d35b
@ -971,7 +971,8 @@ sctp_shutdown(struct socket *so)
|
||||
}
|
||||
SCTP_INP_RLOCK(inp);
|
||||
/* For UDP model this is a invalid call */
|
||||
if (inp->sctp_flags & SCTP_PCB_FLAGS_UDPTYPE) {
|
||||
if (!((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) ||
|
||||
(inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) {
|
||||
/* Restore the flags that the soshutdown took away. */
|
||||
SOCKBUF_LOCK(&so->so_rcv);
|
||||
so->so_rcv.sb_state &= ~SBS_CANTRCVMORE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user