]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - net/ipv6/netfilter/ip6_tables.c
netfilter: ip6_tables: fix information leak to userspace
[~shefty/rdma-dev.git] / 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));