summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0007action_object_set_segfault_1
blob: 933a2f62ae436acb0f479bbacb366f2cf9d848a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# test for a segfault if bad syntax was used in set declaration
# and the set is referenced in the same batch

RULESET="
add table t
add chain t c
add set t s {type ipv4_addr\;}
add rule t c ip saddr @s
"

$NFT -f - <<< "$RULESET" 2>/dev/null