patch-2.0.31 linux/net/ipv4/af_inet.c
Next file: linux/net/ipv4/arp.c
Previous file: linux/net/ipv4/Config.in
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Fri Aug 15 12:23:23 1997
- Orig file:
v2.0.30/linux/net/ipv4/af_inet.c
- Orig date:
Tue Apr 8 08:47:47 1997
diff -u --recursive --new-file v2.0.30/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -620,8 +620,12 @@
#endif
if (snum == 0)
snum = sk->prot->good_socknum();
- if (snum < PROT_SOCK && !suser())
+ if (snum < PROT_SOCK) {
+ if (!suser())
return(-EACCES);
+ if (snum == 0)
+ return(-EAGAIN);
+ }
chk_addr_ret = ip_chk_addr(addr->sin_addr.s_addr);
if (addr->sin_addr.s_addr != 0 && chk_addr_ret != IS_MYADDR &&
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov