]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: use existing table object from evaluation context
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Sep 2015 23:30:06 +0000 (01:30 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 11 Sep 2015 12:32:04 +0000 (14:32 +0200)
commit4bfcee9847fa4d45685638cb505782bcd6ee2853
tree1812cedce6a841a15f30705a5efeb3ded1db9eee
parent0663bfe7ece4fcb57bd78c7eab2001345527b74c
evaluate: use existing table object from evaluation context

Skip table object lookup if we are in the context of table declaration already,
ctx->table already points to the right table we have to use during the
evalution. Otherwise, a list corruption occurs when using the wrong table
object when it already exists in the kernel.

http://marc.info/?l=netfilter-devel&m=144179814209295&w=2

Reported-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Tested-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
src/evaluate.c