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

No differences found