summaryrefslogtreecommitdiffstats
path: root/src/parser_json.c
diff options
context:
space:
mode:
authorAlex Forster <aforster@cloudflare.com>2022-12-01 21:35:01 -0600
committerPablo Neira Ayuso <pablo@netfilter.org>2022-12-02 13:55:33 +0100
commit12664ae54a1a453d2695a204b97cdc1a524b0a13 (patch)
tree24240af4b20081b8ad8cbfb16be686d508f1ea83 /src/parser_json.c
parent1017d323cafa6d4df34b9a2d0bea505e5253bc2b (diff)
json: fix 'add flowtable' commandHEADmaster
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>
Diffstat (limited to 'src/parser_json.c')
-rw-r--r--src/parser_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_json.c b/src/parser_json.c
index 76c268f8..aa00e9ec 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -3253,7 +3253,7 @@ static struct cmd *json_parse_cmd_add_flowtable(struct json_ctx *ctx,
return NULL;
}
- json_unpack(root, "{s:o}", &devs);
+ json_unpack(root, "{s:o}", "dev", &devs);
hookstr = chain_hookname_lookup(hook);
if (!hookstr) {