diff options
author | Phil Sutter <phil@nwl.cc> | 2018-05-28 18:51:06 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-06-01 09:16:48 +0200 |
commit | d09eaf0fc19ca3664f535bf64c3f94e05fb7323d (patch) | |
tree | ed3b9bb5eff92008e8cfb0e892e797e39659f745 /tests | |
parent | 77e611b63ba958e79eec56d1cd1f18b64f938314 (diff) |
JSON: Simplify immediate value parsing
Since an explicit "immediate" expression doesn't exist in JSON (the
values are represented as plain JSON string/integer/boolean types),
there is no need for json_parse_immediate_expr() to comply to the common
expression parser parameter format.
Apart from that:
* Drop CTX_F_RHS checks - caller assures sane context already.
* Improve error message a bit for denied JSON types.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions