netfilter: ip6_tables: fix information leak to userspace
authorJan Engelhardt <jengelh@medozas.de>
Thu, 4 Nov 2010 01:55:39 +0000 (18:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Nov 2010 01:55:39 +0000 (18:55 -0700)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/ip6_tables.c

index 51df035897e77dfa5b89e6328817cfcb638702cb..455582384eced0b9242a40ea523ac31c8d6e08f4 100644 (file)
@@ -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));