diff options
author | Phil Sutter <phil@nwl.cc> | 2021-09-01 16:41:44 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-09-01 17:22:17 +0200 |
commit | 9fe5d1bc18cfaed2ecf717e3dd9a97ff5b0e183c (patch) | |
tree | 1c255dddf2d4b24454e9f0a0461e9cfb04ebd506 /tests/py/ip6/meta.t | |
parent | 567ea4774e13b1f3b06f42c74b9bd32453d70164 (diff) |
parser_json: Fix error reporting for invalid syntax
Errors emitted by the JSON parser caused BUG() in erec_print() due to
input descriptor values being bogus.
Due to lack of 'include' support, JSON parser uses a single input
descriptor only and it lived inside the json_ctx object on stack of
nft_parse_json_*() functions.
By the time errors are printed though, that scope is not valid anymore.
Move the static input descriptor object to avoid this.
Fixes: 586ad210368b7 ("libnftables: Implement JSON parser")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/py/ip6/meta.t')
0 files changed, 0 insertions, 0 deletions