]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conncount: remove wrong condition check routine
authorTaehee Yoo <ap420073@gmail.com>
Sun, 25 Nov 2018 09:47:13 +0000 (18:47 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Nov 2018 23:48:12 +0000 (00:48 +0100)
commit9e96b7382b824c0cc7476888f4ab1e07a430ec91
treed143e0e9bdcb026745c358ad96e8853bdcfd2896
parentfbc19ce82ce2d01696c1948b887b88bef5254970
netfilter: nf_conncount: remove wrong condition check routine

All lists that reach the tree_nodes_free() function have both zero
counter and true dead flag. The reason for this is that lists to be
release are selected by nf_conncount_gc_list() which already decrements
the list counter and sets on the dead flag. Therefore, this if statement
in tree_nodes_free() is unnecessary and wrong.

Fixes: c92ed326c540 ("netfilter: nf_conncount: fix list_del corruption in conn_free")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conncount.c