]> git.ipfire.org Git - thirdparty/nftables.git/commit
cache: don't crash when filter is NULL
authorFlorian Westphal <fw@strlen.de>
Tue, 1 Apr 2025 14:29:14 +0000 (16:29 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 1 Apr 2025 14:38:39 +0000 (16:38 +0200)
commit3f0a47f9f00c9f368997c397b0848966029c39fb
tree6663f81ce80f295dce7861294aed3cf6e1fc5553
parenteebf7dd6582a2e94990388ba2d0772d14289b674
cache: don't crash when filter is NULL

a delete request will cause a crash in obj_cache_dump, move the deref
into the filter block.

Fixes: dbff26bfba83 ("cache: consolidate reset command")
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/cache.c
tests/shell/testcases/bogons/nft-f/delete_nonexistant_object_crash [new file with mode: 0644]