patch-2.2.19 linux/net/socket.c

Next file: linux/net/sunrpc/Makefile
Previous file: linux/net/sched/cls_u32.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/net/socket.c linux/net/socket.c
@@ -1048,7 +1048,10 @@
 {
 	int err;
 	struct socket *sock;
-	
+
+	if(optlen < 0)	
+		return -EINVAL;
+		
 	lock_kernel();
 	if ((sock = sockfd_lookup(fd, &err))!=NULL)
 	{

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)