summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0007action_object_set_segfault_1
blob: 6cbd38693bdacec70c91abb3acdc39dfe66ba906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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 && exit 1
exit 0