]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] ebtables: don't compute gap before checking struct type
authorChuck Ebbert <76306.1226@compuserve.com>
Thu, 4 Jan 2007 07:59:56 +0000 (02:59 -0500)
committerChris Wright <chrisw@sous-sol.org>
Wed, 10 Jan 2007 19:05:22 +0000 (11:05 -0800)
commitff6173b1de40f8b0341c18a8e12414a59bcf7f52
tree950587c15826781ece13ac869d365be7786d5a37
parentc68cacc6bc902217988302f966a47fe184f3eaa1
[PATCH] ebtables: don't compute gap before checking struct type

We cannot compute the gap until we know we have a 'struct ebt_entry'
and not 'struct ebt_entries'.  Failure to check can cause crash.

Tested-by: Santiago Garcia Mantinan <manty@manty.net>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/bridge/netfilter/ebtables.c