Skip to content

Commit

Permalink
[NETFILTER]: ip_tables: compat error way cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasily Averin authored and David S. Miller committed Oct 30, 2006
1 parent 590bdf7 commit ef4512e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/netfilter/ip_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ translate_compat_table(const char *name,
out:
return ret;
out_unlock:
compat_flush_offsets();
xt_compat_unlock(AF_INET);
goto out;
}
Expand Down

0 comments on commit ef4512e

Please sign in to comment.