From 3392883f4566030853184f261d3ec1a62a7b4c1d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 30 Apr 2021 01:01:17 +0200 Subject: rule: skip fuzzy lookup for unexisting 64-bit handle Deletion by handle, if incorrect, should not exercise the misspell lookup functions. Fixes: 3a0e07106f66 ("src: combine extended netlink error reporting with mispelling support") Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0 (limited to 'tests/shell/testcases/cache') diff --git a/tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0 b/tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0 new file mode 100755 index 00000000..f0bb02a6 --- /dev/null +++ b/tests/shell/testcases/cache/0009_delete_by_handle_incorrect_0 @@ -0,0 +1,8 @@ +#!/bin/bash + +$NFT delete table handle 4000 && exit 1 +$NFT delete chain t handle 4000 && exit 1 +$NFT delete set t handle 4000 && exit 1 +$NFT delete flowtable t handle 4000 && exit 1 +$NFT delete counter t handle 4000 && exit 1 +exit 0 -- cgit v1.2.3