summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-17 21:52:35 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:58:40 -0800
commitb5dd674b2a1de5925955a088b0a10f81484e975a (patch)
tree7cefec18f8df9cbd1425d453c2f15e4f50074c85 /net
parentc9d8fe13175140c79982f9d29c6921328f9afad6 (diff)
[NETFILTER]: ip6_tables: fix stack leagage
Fix leakage of local variable on stack. This already got fixed in ip_tables silently by the compat patches. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/netfilter/ip6_tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index 40893fc05926..fc4c62fddfe7 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -1154,7 +1154,7 @@ static int get_info(void __user *user, int *len, int compat)
sizeof(info.underflow));
info.num_entries = private->number;
info.size = private->size;
- memcpy(info.name, name, sizeof(info.name));
+ strcpy(info.name, name);
if (copy_to_user(user, &info, *len) != 0)
ret = -EFAULT;