parser_json: fix device parsing in netdev family
Pablo Neira Ayuso
maintainerPATCH 1/1 parser_json: fix device parsing in netdev family
json_unpack() function is not designed to take a pre-allocated buffer.
Fixes 3fdc7541fba0 ("src: add multidevice support for netdev chain")
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/parser_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/parser_json.c +1 -1
@@ -2781,7 +2781,7 @@ static struct cmd *json_parse_cmd_add_chain(struct json_ctx *ctx, json_t *root, .table.location = *int_loc, };const char *family ="" , *policy ="" , *type, *hookstr; -const char name[IFNAMSIZ ]; +const char *name ="" ;struct chain *chain;int prio;
Signature · 1 line
2.30.2