patch-1.3.69 linux/net/ipv4/af_inet.c
Next file: linux/net/ipv4/arp.c
Previous file: linux/net/core/sock.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Feb 23 10:46:33 1996
- Orig file:
v1.3.68/linux/net/ipv4/af_inet.c
- Orig date:
Fri Feb 23 13:54:42 1996
diff -u --recursive --new-file v1.3.68/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -1162,7 +1162,7 @@
return(-EINVAL);
if (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sock->state = SS_CONNECTED;
- if (!tcp_connected(sk->state))
+ if (!sk || !tcp_connected(sk->state))
return(-ENOTCONN);
sk->shutdown |= how;
if (sk->prot->shutdown)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this