patch-2.2.15 linux/net/unix/af_unix.c
Next file: linux/net/wanrouter/wanmain.c
Previous file: linux/net/sunrpc/svcauth.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Fri Apr 21 12:47:17 2000
- Orig file:
v2.2.14/net/unix/af_unix.c
- Orig date:
Sat Aug 14 02:27:46 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -969,6 +969,10 @@
return -ENOTCONN;
}
+ err = -EMSGSIZE;
+ if (len > sk->sndbuf)
+ goto out;
+
if (sock->passcred && !sk->protinfo.af_unix.addr)
unix_autobind(sock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)