summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-09-01 16:41:44 +0200
committerPhil Sutter <phil@nwl.cc>2021-09-01 17:22:17 +0200
commit9fe5d1bc18cfaed2ecf717e3dd9a97ff5b0e183c (patch)
tree1c255dddf2d4b24454e9f0a0461e9cfb04ebd506 /tests
parent567ea4774e13b1f3b06f42c74b9bd32453d70164 (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')
0 files changed, 0 insertions, 0 deletions