From d4bd008be257cc95b2e9625cc5506b9e925c766d Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 8 Jun 2018 17:27:13 +0200 Subject: JSON: Call verdict maps 'vmap' in JSON as well This way JSON format is more consistent with the standard one. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- src/parser_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser_json.c') diff --git a/src/parser_json.c b/src/parser_json.c index 6e14fb72..e340bebc 100644 --- a/src/parser_json.c +++ b/src/parser_json.c @@ -2064,7 +2064,7 @@ static struct stmt *json_parse_stmt(struct json_ctx *ctx, json_t *root) return NULL; /* Yes, verdict_map_stmt is actually an expression */ - if (!strcmp(type, "map")) { + if (!strcmp(type, "vmap")) { struct expr *expr = json_parse_map_expr(ctx, type, tmp); if (!expr) { -- cgit v1.2.3