summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-11-03 18:55:39 -0700
committerDavid S. Miller <davem@davemloft.net>2010-11-03 18:55:39 -0700
commitcccbe5ef85284621d19e5b2b1c61cc0506bc9dee (patch)
treef5caaa67b6e3ede98d691891f9cacf5d9886877d /net/ipv6
parent758cb41106e87d7e26ef3ee78f04360168460b9d (diff)
downloadlinux-cccbe5ef85284621d19e5b2b1c61cc0506bc9dee.tar.bz2
netfilter: ip6_tables: fix information leak to userspace
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/ip6_tables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index 51df035897e7..455582384ece 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -1137,6 +1137,7 @@ static int get_info(struct net *net, void __user *user,
private = &tmp;
}
#endif
+ memset(&info, 0, sizeof(info));
info.valid_hooks = t->valid_hooks;
memcpy(info.hook_entry, private->hook_entry,
sizeof(info.hook_entry));