diff options
author | Patrick McHardy <kaber@trash.net> | 2006-11-17 06:35:42 +0100 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-12-01 16:12:35 -0800 |
commit | 5b9322ae885f4f7dd08dd8b6c12e759ed05d636d (patch) | |
tree | 80390aaf5a945dc009491a49d2b2654b1b22420d /net | |
parent | e4cb788a4c160fe69f8b4d770ce03ab62bdefb06 (diff) |
[PATCH] NETFILTER: ip_tables: compat error way cleanup
This patch adds forgotten compat_flush_offset() call to error way of
translate_compat_table(). May lead to table corruption on the next
compat_do_replace().
Signed-off-by: Vasily Averin <vvs@openvz.org>
Acked-by: Dmitry Mishin <dim@openvz.org>
Acked-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index c64340b3cda..c2ba0775741 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c @@ -1775,6 +1775,7 @@ free_newinfo: out: return ret; out_unlock: + compat_flush_offsets(); xt_compat_unlock(AF_INET); goto out; } |