Message ID | 20220801141747.107519-1-pablo@netfilter.org |
---|---|
State | Changes Requested |
Delegated to: | Pablo Neira |
Headers | show |
Series | [nft] parser_json: fix device parsing in netdev family | expand |
diff --git a/src/parser_json.c b/src/parser_json.c index fb401009a499..e136cb2b43b0 100644 --- a/src/parser_json.c +++ b/src/parser_json.c @@ -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;
json_unpack() function is not designed to take a pre-allocated buffer. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1612 Fixes: 3fdc7541fba0 ("src: add multidevice support for netdev chain") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> --- src/parser_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)