patch-2.4.27 linux-2.4.27/net/ipv4/af_inet.c

Next file: linux-2.4.27/net/ipv4/devinet.c
Previous file: linux-2.4.27/net/decnet/dn_dev.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/net/ipv4/af_inet.c linux-2.4.27/net/ipv4/af_inet.c
@@ -1042,7 +1042,7 @@
 
 	br_write_lock_bh(BR_NETPROTO_LOCK);
 
-	if (p->type > SOCK_MAX)
+	if (p->type >= SOCK_MAX)
 		goto out_illegal;
 
 	/* If we are trying to override a permanent protocol, bail. */

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