summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2025-04-01 16:29:14 +0200
committerFlorian Westphal <fw@strlen.de>2025-04-01 16:38:39 +0200
commit3f0a47f9f00c9f368997c397b0848966029c39fb (patch)
tree6663f81ce80f295dce7861294aed3cf6e1fc5553 /tests/shell/testcases
parenteebf7dd6582a2e94990388ba2d0772d14289b674 (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_crash1
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