summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0007action_object_set_segfault_1
blob: 7649a49608183750af0e6ac05890f0f505ffacc3 (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