summaryrefslogtreecommitdiffstats
path: root/src/monitor.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-04-01 23:15:02 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-04-03 19:41:02 +0200
commit6b7b7d5d219dca4465390f4a69096383d17782d3 (patch)
treea73459c8842b8e5408e64e7bada5add73c0c2bd3 /src/monitor.c
parentf28813ec379e91e50e23de7f3990fced1281a061 (diff)
cache: check for NULL chain in cache_init()
Another process might race to add chains after chain_cache_init(). The generation check does not help since it comes after cache_init(). NLM_F_DUMP_INTR only guarantees consistency within one single netlink dump operation, so it does not help either (cache population requires several netlink dump commands). Let's be safe and do not assume the chain exists in the cache when populating the rule cache. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/monitor.c')
0 files changed, 0 insertions, 0 deletions