Considering this minimal example:
``` #!/usr/sbin/nft -f
define l = { 192.168.22.24, 192.168.22.25 }
table t1 {
# the definition of this map causes a segementation fault map snat_table { type ipv4_addr : ipv4_addr flags interval counter elements = { 192.168.22.23 : 86.12.22.23, $l : 86.12.22.24 } }
chain c2 { type nat hook postrouting priority srcnat;
oif wan1 snat to ip saddr map @snat_table
# while using an anonymous map seems to work fine oif wan1 snat to ip saddr map { 192.168.22.23 : 86.12.22.22, $l : 89.6.23.1 } }
}
```
Expected outcome: Either an error that this is syntactically incorrect or that it works in named and anonymous maps
Actual outcome: Segmentation fault
Package name version: 1.0.2-1ubuntu2 OS release: Ubuntu 22.04 LTS
Considering this minimal example:
```
#!/usr/sbin/nft -f
define l = {
192.168.22.24,
192.168.22.25
}
table t1 {
# the definition of this map causes a segementation fault
192.168. 22.23 : 86.12.22.23,
map snat_table {
type ipv4_addr : ipv4_addr
flags interval
counter
elements = {
$l : 86.12.22.24
}
}
chain c2 {
type nat hook postrouting priority srcnat;
oif wan1 snat to ip saddr map @snat_table
# while using an anonymous map seems to work fine
192.168. 22.23 : 86.12.22.22,
oif wan1 snat to ip saddr map {
$l : 89.6.23.1
}
}
}
```
Expected outcome: Either an error that this is syntactically incorrect or that it works in named and anonymous maps
Actual outcome: Segmentation fault
Package name version: 1.0.2-1ubuntu2
OS release: Ubuntu 22.04 LTS