]> git.ipfire.org Git - thirdparty/nftables.git/commit
segtree: fix map listing with interface wildcard
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Jun 2022 10:54:23 +0000 (12:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Jun 2022 10:54:43 +0000 (12:54 +0200)
commit6c23bfa512187d509ecc188653a6f232b0695d1d
tree67e4dd93dfe3962c455c01f8d8a8ed784dabac46
parent8623772af06103ed4ccca3d07e55afbf3d952d6d
segtree: fix map listing with interface wildcard

 # nft -f - <<'EOF'
 table inet filter {
    chain INPUT {
        iifname vmap {
            "eth0" : jump input_lan,
            "wg*" : jump input_vpn
        }
    }
    chain input_lan {}
    chain input_vpn {}
 }
 EOF
 # nft list ruleset
 nft: segtree.c:578: interval_map_decompose: Assertion `low->len / 8 > 0' failed.

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1617
Fixes: 5e393ea1fc0a ("segtree: add string "range" reversal support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/segtree.c
tests/shell/testcases/sets/dumps/sets_with_ifnames.nft