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

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)