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

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

diff -u --recursive --new-file v2.1.24/linux/net/ipv6/af_inet6.c linux/net/ipv6/af_inet6.c
@@ -129,6 +129,7 @@
 	}
 	
 	sock_init_data(sock,sk);
+	sk->zapped=0;
 
 	sk->family = AF_INET6;
 	sk->protocol = protocol;
@@ -779,8 +780,8 @@
 
 	if (sizeof(struct ipv6_options) > sizeof(dummy_skb->cb))
 	{
-		printk(KERN_CRIT "inet6_proto_init: panic\n");
-		return;
+		printk(KERN_CRIT "inet6_proto_init: size fault\n");
+		return -EINVAL;
 	}
 
   	(void) sock_register(&inet6_family_ops);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov