diff options
| author | Hideaki Yoshifuji <yoshfuji@linux-ipv6.org> | 2004-01-19 05:02:20 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2004-01-19 05:02:20 -0800 |
| commit | c0dfbdceea7530b27b938a69e856ef20ea47116a (patch) | |
| tree | 480b60dec6213379be3124cc6682b13a0653a3f5 | |
| parent | 75563be1078b3948bf7b93cd3a0fc8a42e68bdf8 (diff) | |
[IPV6]: Fix array size and missing sentinal in sysctl table of addrconf.c
| -rw-r--r-- | net/ipv6/addrconf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index d20f6647bc70..7632e842174f 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -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 = { { |
