]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: clone unary expression datatype to deal with dynamic datatype
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Nov 2023 19:35:07 +0000 (20:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Nov 2023 21:00:44 +0000 (22:00 +0100)
commitfaa6908fad6053ae9549c45b88d0402cc69cf1ed
treec65df90f6d4f7a597625654b1b1b73edb2a45774
parent7a6089a400a573b9a4fd92f29c00a6be7b8ef269
evaluate: clone unary expression datatype to deal with dynamic datatype

When allocating a unary expression, clone the datatype to deal with
dynamic datatypes.

Fixes: 6b01bb9ff798 ("datatype: concat expression only releases dynamically allocated datatype")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c
tests/shell/testcases/maps/dumps/vmap_unary.nft [new file with mode: 0644]
tests/shell/testcases/maps/vmap_unary [new file with mode: 0755]