]> git.ipfire.org Git - thirdparty/nftables.git/commit
JSON: Fix parsing of meter statement key
authorPhil Sutter <phil@nwl.cc>
Mon, 28 May 2018 16:51:05 +0000 (18:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Jun 2018 07:16:48 +0000 (09:16 +0200)
commit77e611b63ba958e79eec56d1cd1f18b64f938314
tree5f69e5baf1f8c207cdb168d123c38d5399c41dd6
parent15e3b072de8ad7423db9b54188aab497b9f264d5
JSON: Fix parsing of meter statement key

The key must be a set elem expression, but if a "regular" expression was
provided (which should be commonly accepted in case no set elem specific
properties are required), the resulting object tree crashed libnftables.

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