]> git.ipfire.org Git - thirdparty/nftables.git/commit
json: fix 'add flowtable' command
authorAlex Forster <aforster@cloudflare.com>
Fri, 2 Dec 2022 03:35:01 +0000 (21:35 -0600)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 2 Dec 2022 12:55:33 +0000 (13:55 +0100)
commit12664ae54a1a453d2695a204b97cdc1a524b0a13
tree24240af4b20081b8ad8cbfb16be686d508f1ea83
parent1017d323cafa6d4df34b9a2d0bea505e5253bc2b
json: fix 'add flowtable' command

In `json_parse_cmd_add_flowtable`, the format arguments passed to `json_unpack` are incorrect: the object key name ("dev") is not provided.

Fixes: da6cb40177da ("parser_json: permit empty device list")
Signed-off-by: Alex Forster <aforster@cloudflare.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_json.c