Author: tuexen
Date: Sun Jul  7 13:15:56 2013
New Revision: 252948
URL: http://svnweb.freebsd.org/changeset/base/252948

Log:
  MFC r243558:
  Allow shutdown() to be used on fds returned from sctp_peeloff().

Modified:
  stable/9/sys/netinet/sctp_usrreq.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/9/sys/netinet/sctp_usrreq.c  Sun Jul  7 13:13:41 2013        
(r252947)
+++ stable/9/sys/netinet/sctp_usrreq.c  Sun Jul  7 13:15:56 2013        
(r252948)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to