diff options
author | Florian Westphal <fw@strlen.de> | 2025-04-01 16:29:14 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2025-04-01 16:38:39 +0200 |
commit | 3f0a47f9f00c9f368997c397b0848966029c39fb (patch) | |
tree | 6663f81ce80f295dce7861294aed3cf6e1fc5553 /tests/shell/testcases | |
parent | eebf7dd6582a2e94990388ba2d0772d14289b674 (diff) |
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>
Diffstat (limited to 'tests/shell/testcases')
-rw-r--r-- | tests/shell/testcases/bogons/nft-f/delete_nonexistant_object_crash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/delete_nonexistant_object_crash b/tests/shell/testcases/bogons/nft-f/delete_nonexistant_object_crash new file mode 100644 index 00000000..c369dec8 --- /dev/null +++ b/tests/shell/testcases/bogons/nft-f/delete_nonexistant_object_crash @@ -0,0 +1 @@ +delete quota a b |