patch-2.0.11 linux/net/ipv4/af_inet.c
Next file: linux/net/ipv4/arp.c
Previous file: linux/net/ethernet/eth.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Sun Aug 4 12:56:25 1996
- Orig file:
v2.0.10/linux/net/ipv4/af_inet.c
- Orig date:
Mon Jul 8 10:21:46 1996
diff -u --recursive --new-file v2.0.10/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -814,7 +814,7 @@
/* check this error. */
if (sk->state != TCP_CLOSE)
- return(-EIO);
+ return(-EINVAL);
if(addr_len<sizeof(struct sockaddr_in))
return -EINVAL;
@@ -1104,6 +1104,12 @@
destroy_sock(sk2);
newsock->data = NULL;
return err;
+ }
+ if (sk2->state == TCP_CLOSE)
+ {
+ destroy_sock(sk2);
+ newsock->data=NULL;
+ return -ECONNABORTED;
}
newsock->state = SS_CONNECTED;
return(0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov