]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_bison: error out on duplicated type/typeof/element keywords
authorFlorian Westphal <fw@strlen.de>
Tue, 19 Dec 2023 15:22:32 +0000 (16:22 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 19 Dec 2023 16:32:43 +0000 (17:32 +0100)
commit6c04e5ceb95068bb459b07307ecc3629d97a2043
tree5646e38880542055783862f2fefd77d43d77876f
parent84da729e067a68bd50be8c0791d16901360be5ad
parser_bison: error out on duplicated type/typeof/element keywords

Otherwise nft will leak the previous definition (expressions).
Also remove the nonsensical

   datatype_set($1->key, $3->dtype);

This is a no-op, at this point: $1->key and $3 are identical.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/parser_bison.y