summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-05-28 18:51:04 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-06-01 09:16:48 +0200
commit15e3b072de8ad7423db9b54188aab497b9f264d5 (patch)
treeb72ef3be1ae413ae2b439a604ee1974a2ea7bca0
parentbc3e9adc19bc1624010dd478b5e9f006b072298c (diff)
JSON: Improve prefix expression parsing error message a bit
Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/parser_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_json.c b/src/parser_json.c
index bd1c0a04..432991fa 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -951,7 +951,7 @@ static struct expr *json_parse_prefix_expr(struct json_ctx *ctx,
expr = json_parse_primary_expr(ctx, addr);
if (!expr) {
- json_error(ctx, "Invalid prefix in prefix expr.");
+ json_error(ctx, "Invalid address in prefix expr.");
return NULL;
}
return prefix_expr_alloc(int_loc, expr, len);