patch-2.4.27 linux-2.4.27/net/ipv6/af_inet6.c

Next file: linux-2.4.27/net/ipv6/icmp.c
Previous file: linux-2.4.27/net/ipv4/udp.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/net/ipv6/af_inet6.c linux-2.4.27/net/ipv6/af_inet6.c
@@ -550,7 +550,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)