diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-08-13 15:14:48 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-08-27 23:52:08 +0200 |
| commit | 15479e66d20dda2ddd670159c5ef005320f2398c (patch) | |
| tree | 4a49dcf5c30cb8969f1efb2d7a8c401f6353fb3c /src/parser_json.c | |
| parent | d6bfd4f903f65b9cc72778f343cde4aab0148be6 (diff) | |
src: replace compound_expr_add() by type safe concat_expr_add()
Replace compound_expr_add by concat_expr_add() to validate type.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_json.c')
| -rw-r--r-- | src/parser_json.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser_json.c b/src/parser_json.c index cd6744f9..6ed1841c 100644 --- a/src/parser_json.c +++ b/src/parser_json.c @@ -1347,10 +1347,10 @@ static struct expr *json_parse_concat_expr(struct json_ctx *ctx, struct expr *concat; concat = concat_expr_alloc(int_loc); - compound_expr_add(concat, expr); + concat_expr_add(concat, expr); expr = concat; } - compound_expr_add(expr, tmp); + concat_expr_add(expr, tmp); } return expr ? json_check_concat_expr(ctx, expr) : NULL; } @@ -1824,7 +1824,7 @@ static struct expr *json_parse_dtype_expr(struct json_ctx *ctx, json_t *root) expr_free(expr); return NULL; } - compound_expr_add(expr, i); + concat_expr_add(expr, i); } return json_check_concat_expr(ctx, expr); |
