patch-1.3.68 linux/net/ipv4/tcp_output.c
Next file: linux/net/ipv4/timer.c
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Thu Feb 22 16:02:31 1996
- Orig file:
v1.3.67/linux/net/ipv4/tcp_output.c
- Orig date:
Sat Feb 17 16:02:58 1996
diff -u --recursive --new-file v1.3.67/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -670,9 +670,7 @@
if (buff == NULL)
{
sk->err = ENOMEM;
- newsk->dead = 1;
- newsk->state = TCP_CLOSE;
- /* And this will destroy it */
+ destroy_sock(newsk);
kfree_skb(skb, FREE_READ);
tcp_statistics.TcpAttemptFails++;
return;
@@ -697,8 +695,7 @@
sk->err = tmp;
buff->free = 1;
kfree_skb(buff,FREE_WRITE);
- newsk->dead = 1;
- newsk->state = TCP_CLOSE;
+ destroy_sock(newsk);
skb->sk = sk;
kfree_skb(skb, FREE_READ);
tcp_statistics.TcpAttemptFails++;
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