]> git.ipfire.org Git - thirdparty/nftables.git/commit
JSON: Fix add rule with index
authorPhil Sutter <phil@nwl.cc>
Fri, 1 Jun 2018 15:32:09 +0000 (17:32 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 3 Jun 2018 09:47:22 +0000 (11:47 +0200)
commitbaba63c3f69413dd74a69e3b2cbcbfa21ddddd5b
tree4a019eb009df066c7070f196885220ba469a1cca
parentd1057a5feb5fde589c6505cf94f89fbdce91351b
JSON: Fix add rule with index

This was missed by commit fb557b5546084 ("JSON: Sort out rule position
and handles in general"): When adding a rule, the parser would still
expect "pos" property instead of "index".

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