diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-15 16:03:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-15 16:03:27 -0400 |
commit | 31111c26d976ca0f298312f08e44cdb078005b03 (patch) | |
tree | ca08ef55b2ea91f9e69f8a78bb8b4363a1759b54 /net/ipv6 | |
parent | 0c0217b016ba8a970a6f6ab62ad0d858f39881ca (diff) | |
parent | 2f5dc63123905a89d4260ab8ee08d19ec104db04 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
Conflicts:
Documentation/feature-removal-schedule.txt
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 47b7b8df7fac..c9598a9067d7 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c | |||
@@ -1275,6 +1275,7 @@ do_replace(struct net *net, const void __user *user, unsigned int len) | |||
1275 | /* overflow check */ | 1275 | /* overflow check */ |
1276 | if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) | 1276 | if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) |
1277 | return -ENOMEM; | 1277 | return -ENOMEM; |
1278 | tmp.name[sizeof(tmp.name)-1] = 0; | ||
1278 | 1279 | ||
1279 | newinfo = xt_alloc_table_info(tmp.size); | 1280 | newinfo = xt_alloc_table_info(tmp.size); |
1280 | if (!newinfo) | 1281 | if (!newinfo) |
@@ -1822,6 +1823,7 @@ compat_do_replace(struct net *net, void __user *user, unsigned int len) | |||
1822 | return -ENOMEM; | 1823 | return -ENOMEM; |
1823 | if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) | 1824 | if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters)) |
1824 | return -ENOMEM; | 1825 | return -ENOMEM; |
1826 | tmp.name[sizeof(tmp.name)-1] = 0; | ||
1825 | 1827 | ||
1826 | newinfo = xt_alloc_table_info(tmp.size); | 1828 | newinfo = xt_alloc_table_info(tmp.size); |
1827 | if (!newinfo) | 1829 | if (!newinfo) |
@@ -2051,6 +2053,7 @@ do_ip6t_get_ctl(struct sock *sk, int cmd, void __user *user, int *len) | |||
2051 | ret = -EFAULT; | 2053 | ret = -EFAULT; |
2052 | break; | 2054 | break; |
2053 | } | 2055 | } |
2056 | rev.name[sizeof(rev.name)-1] = 0; | ||
2054 | 2057 | ||
2055 | if (cmd == IP6T_SO_GET_REVISION_TARGET) | 2058 | if (cmd == IP6T_SO_GET_REVISION_TARGET) |
2056 | target = 1; | 2059 | target = 1; |