patch-pre2.0.14-final2.0 linux/net/core/sock.c
Next file: linux/net/ipv4/af_inet.c
Previous file: linux/mm/kmalloc.c
Back to the patch index
Back to the overall index
-  Lines: 9
 -  Date:
Fri Jun  7 11:58:11 1996
 -  Orig file: 
pre2.0.14/linux/net/core/sock.c
 -  Orig date: 
Tue Apr  2 13:32:24 1996
 
diff -u --recursive --new-file pre2.0.14/linux/net/core/sock.c linux/net/core/sock.c
@@ -175,6 +175,8 @@
 				val = SK_WMEM_MAX*2;
 			if(val < 256)
 				val = 256;
+			if(val > 65535)
+				val = 65535;
 			sk->sndbuf = val;
 			return 0;
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this