]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: don't add table/chain/set to ctx->list in the event path
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 May 2014 13:17:20 +0000 (15:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 May 2014 14:21:05 +0000 (16:21 +0200)
commitdcb0a6141f4d4c6f7ad9a051a7c129bc136caf0c
treef35ab18594425c89346078345aa2ecb5f1715d64
parenta8b0e09ad01eed49ad0d1272665c48789d417dba
netlink: don't add table/chain/set to ctx->list in the event path

The delinearize functions for tables, chains and sets add these objects
to the ctx->list. In the chain case, this is not required. Regarding
tables and sets, those are added to the cache.

This patch implicitly fixes an use chain object after free that result
in random crashes.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c