Skip to content

Commit 6dc2fae

Browse files
Florian Westphalummakynes
authored andcommitted
selftests: netfilter: nft_concat_range.sh: send packets to empty set
The selftest doesn't cover this error path: scratch = *raw_cpu_ptr(m->scratch); if (unlikely(!scratch)) { // here cover this too. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent aa085ea commit 6dc2fae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/testing/selftests/net/netfilter/nft_concat_range.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,9 @@ maybe_send_match() {
13111311
# - remove some elements, check that packets don't match anymore
13121312
test_correctness_main() {
13131313
range_size=1
1314+
1315+
send_nomatch $((end + 1)) $((end + 1 + src_delta)) || return 1
1316+
13141317
for i in $(seq "${start}" $((start + count))); do
13151318
local elem=""
13161319

0 commit comments

Comments
 (0)