Browse Source

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>
Jan Engelhardt 14 years ago
parent
commit
cccbe5ef85
1 changed files with 1 additions and 0 deletions
  1. 1 0
      net/ipv6/netfilter/ip6_tables.c

+ 1 - 0
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));