]> git.ipfire.org Git - thirdparty/nftables.git/commit
concat: provide proper dtype when parsing typeof udata
authorFlorian Westphal <fw@strlen.de>
Wed, 1 Apr 2020 14:02:16 +0000 (16:02 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 1 Apr 2020 14:43:29 +0000 (16:43 +0200)
commit4ff24ab735c80136c9ce2cca4c3b95065369081d
treee515ca79a054df141a07ef973dcd99a091519c7c
parentaa2ddbfbee904445b3593082455056ba3fed321c
concat: provide proper dtype when parsing typeof udata

Pablo reports following list bug:
table ip foo {
        map whitelist {
                typeof ip saddr . ip daddr : meta mark
                elements = { 0x0 [invalid type] . 0x0 [invalid type] : 0x00000001,
                             0x0 [invalid type] . 0x0 [invalid type] : 0x00000002 }
        }
}

Problem is that concat provided 'invalid' dtype.

Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/expression.c
tests/shell/testcases/maps/dumps/typeof_maps_0.nft
tests/shell/testcases/maps/typeof_maps_0