Backout rev. 1.246, it breaks code uses shutdown(2) on non-connected
sockets. Pointed out by: rwatson
This commit is contained in:
parent
724447ac41
commit
aada5cccd8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user