]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_json: fix off by one index on rule add/replace
authorEric Garver <eric@garver.life>
Wed, 1 May 2019 16:25:37 +0000 (12:25 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 May 2019 16:14:19 +0000 (18:14 +0200)
commit2d908943fa5515f27ef5dde249d0b08b92aa7ff0
treee3ef7434cdc43d50689f9ce81180c2fa3ca7198e
parent55715486efba424e97361c81d8d47e854f45a5a6
parser_json: fix off by one index on rule add/replace

We need to increment the index by one just as the CLI does.

Fixes: 586ad210368b7 ("libnftables: Implement JSON parser")
Signed-off-by: Eric Garver <eric@garver.life>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_json.c