]> 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)
committerPhil Sutter <phil@nwl.cc>
Fri, 22 Sep 2023 08:55:25 +0000 (10:55 +0200)
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 9532f7be04d67ee0412f0e78ea03818af5198120..da05681402aaf8d8257eb3fd8f246d57a8f7a777 100644 (file)
@@ -3570,7 +3570,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)) {