]> git.ipfire.org Git - thirdparty/nftables.git/commit
JSON: Simplify tcp option expression parsing a bit
authorPhil Sutter <phil@nwl.cc>
Mon, 28 May 2018 16:51:03 +0000 (18:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Jun 2018 07:16:48 +0000 (09:16 +0200)
commitbc3e9adc19bc1624010dd478b5e9f006b072298c
treeeccfeecca63893e5724c6cc960bc390accb2459e
parentc36288dbe2ba363586424c2951fd715873608581
JSON: Simplify tcp option expression parsing a bit

When parsing the optional "field" property, use return code of
json_unpack() directly to check if it was present or not.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_json.c