]> git.hungrycats.org Git - linux/commitdiff
[IPV6]: Fix array size and missing sentinal in sysctl table of addrconf.c
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Mon, 19 Jan 2004 13:02:20 +0000 (05:02 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Mon, 19 Jan 2004 13:02:20 +0000 (05:02 -0800)
net/ipv6/addrconf.c

index d20f6647bc70d7a81b0a63eea0002d7b41fd31b1..7632e842174fcccc90fb02c9c7d76dc9c666ff26 100644 (file)
@@ -3039,7 +3039,7 @@ static int addrconf_sysctl_forward_strategy(ctl_table *table,
 static struct addrconf_sysctl_table
 {
        struct ctl_table_header *sysctl_header;
-       ctl_table addrconf_vars[16];
+       ctl_table addrconf_vars[17];
        ctl_table addrconf_dev[2];
        ctl_table addrconf_conf_dir[2];
        ctl_table addrconf_proto_dir[2];
@@ -3180,6 +3180,9 @@ static struct addrconf_sysctl_table
                        .mode           =       0644,
                        .proc_handler   =       &proc_dointvec,
                },
+               {
+                       .ctl_name       =       0,      /* sentinel */
+               }
        },
        .addrconf_dev = {
                {