From aada5cccd8788a71271645b342b8c1e85f274608 Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Thu, 15 Sep 2005 13:18:05 +0000 Subject: [PATCH] Backout rev. 1.246, it breaks code uses shutdown(2) on non-connected sockets. Pointed out by: rwatson --- sys/kern/uipc_socket.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index be704bf0014f..d2e45564c09f 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);