Backout rev. 1.246, it breaks code uses shutdown(2) on non-connected

sockets.

Pointed out by:	rwatson
This commit is contained in:
Maxim Konovalov 2005-09-15 13:18:05 +00:00
parent 724447ac41
commit aada5cccd8

View File

@ -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);