]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
parser_json: Fix typo in json_parse_cmd_add_object()
authorPhil Sutter <phil@nwl.cc>
Wed, 13 Sep 2023 18:44:19 +0000 (20:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Nov 2023 11:23:37 +0000 (12:23 +0100)
commit 300edcfbb357ef1785b5a16424952fcd06146cb3 upstream.

A case of bad c'n'p in the fixed commit broke ct timeout objects
parsing.

Fixes: c7a5401943df8 ("parser_json: Fix for ineffective family value checks")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/parser_json.c

index 47cc652bf410a77c17e83c94b619e01fa8532d38..f61cc14eebf7b987899244fc221807e587af1eff 100644 (file)
@@ -3454,7 +3454,7 @@ static struct cmd *json_parse_cmd_add_object(struct json_ctx *ctx,
                        obj_free(obj);
                        return NULL;
                }
-               obj->ct_helper.l3proto = l3proto;
+               obj->ct_timeout.l3proto = l3proto;
 
                init_list_head(&obj->ct_timeout.timeout_list);
                if (json_parse_ct_timeout_policy(ctx, root, obj)) {