]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_json: Disallow ct helper as type to map to
authorPhil Sutter <phil@nwl.cc>
Thu, 11 Apr 2019 10:38:51 +0000 (12:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Apr 2019 18:50:28 +0000 (20:50 +0200)
commit2bb74a7796ea6d7a9df64bb9d3ef57fc31b8d7b7
treed883c800903893c0b8077138092a50d7616e3846
parent2ed5afd9f3183f8af2a5347e9f606ae02cd849e3
parser_json: Disallow ct helper as type to map to

When creating a map, users may either map dtype:dtype or dtype:object.
In the second case, only counter, quota, limit and secmark is allowed by
bison, but JSON parser wasn't as strict, allowing ct helper as well.
Remove that to avoid undefined behaviour.

Fixes: 586ad210368b7 ("libnftables: Implement JSON parser")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_json.c