diff options
author | Vasily Averin <vvs@openvz.org> | 2006-10-30 18:13:28 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-10-30 18:24:45 -0500 |
commit | ef4512e76679b4f4997f60f93f8a576a0d20c26b (patch) | |
tree | e8de46772534dd932201cc7a0757ba1ac817c5d5 /net/ipv4 | |
parent | 590bdf7fd2292b47c428111cb1360e312eff207e (diff) |
[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>
Diffstat (limited to 'net/ipv4')
-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 e2c7f6e024c5..0f4835cf0e4d 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c | |||
@@ -1725,6 +1725,7 @@ free_newinfo: | |||
1725 | out: | 1725 | out: |
1726 | return ret; | 1726 | return ret; |
1727 | out_unlock: | 1727 | out_unlock: |
1728 | compat_flush_offsets(); | ||
1728 | xt_compat_unlock(AF_INET); | 1729 | xt_compat_unlock(AF_INET); |
1729 | goto out; | 1730 | goto out; |
1730 | } | 1731 | } |