aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-18 00:52:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:40 -0500
commitb5dd674b2a1de5925955a088b0a10f81484e975a (patch)
tree7cefec18f8df9cbd1425d453c2f15e4f50074c85 /net/ipv6
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/ipv6')
-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)
1154 sizeof(info.underflow)); 1154 sizeof(info.underflow));
1155 info.num_entries = private->number; 1155 info.num_entries = private->number;
1156 info.size = private->size; 1156 info.size = private->size;
1157 memcpy(info.name, name, sizeof(info.name)); 1157 strcpy(info.name, name);
1158 1158
1159 if (copy_to_user(user, &info, *len) != 0) 1159 if (copy_to_user(user, &info, *len) != 0)
1160 ret = -EFAULT; 1160 ret = -EFAULT;