]> git.ipfire.org Git - thirdparty/nftables.git/commit
json: init parser state for every new buffer/file
authorEric Garver <eric@garver.life>
Fri, 19 Feb 2021 15:11:26 +0000 (10:11 -0500)
committerPhil Sutter <phil@nwl.cc>
Fri, 19 Feb 2021 15:42:11 +0000 (16:42 +0100)
commit267338ec392346ef55ed51509e5f8e8354d6c19a
tree6e167b48290447317d27d921bef8cab608e23a8c
parentfb544ce224ab56ef789e926227e47ac537cf9a20
json: init parser state for every new buffer/file

Otherwise invalid error states cause subsequent json parsing to fail
when it should not.

Signed-off-by: Eric Garver <eric@garver.life>
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/parser_json.c