netfilter: xtables: compat out of scope fix
commitdab1531a07ad7c5be4ebe715a3d08742f0c638e3
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 8 Feb 2010 14:44:07 +0000 (8 15:44 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 8 Feb 2010 14:44:07 +0000 (8 15:44 +0100)
tree6fbd56b4bdbdcb3c68d372be4bfa67caf4925082
parent38c7233b287481dfb3327dde136801ce500aba58
netfilter: xtables: compat out of scope fix

As per C99 6.2.4(2) when temporary table data goes out of scope,
the behaviour is undefined:

if (compat) {
struct foo tmp;
...
private = &tmp;
}
[dereference private]

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c