summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2005-09-15 13:18:05 +0000
committermaxim <maxim@FreeBSD.org>2005-09-15 13:18:05 +0000
commit99d897fe3cc2abf7ae2460f86b5250a5dad4a682 (patch)
treef5a817358be47150500ec1e9b5b32ae4bbde180a
parent56379f0e5b28374b47acdcb20c9eaf599d2429ad (diff)
downloadFreeBSD-src-99d897fe3cc2abf7ae2460f86b5250a5dad4a682.zip
FreeBSD-src-99d897fe3cc2abf7ae2460f86b5250a5dad4a682.tar.gz
Backout rev. 1.246, it breaks code uses shutdown(2) on non-connected
sockets. Pointed out by: rwatson
-rw-r--r--sys/kern/uipc_socket.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index be704bf..d2e4556 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1424,8 +1424,6 @@ soshutdown(so, how)
if (!(how == SHUT_RD || how == SHUT_WR || how == SHUT_RDWR))
return (EINVAL);
- if ((so->so_state & SS_ISCONNECTED) == 0)
- return (ENOTCONN);
if (how != SHUT_WR)
sorflush(so);
OpenPOWER on IntegriCloud