For NFT_COMPAT_RULE_SAVE, one has to store the rule number, not its
index in nft_cmd object.
Fixes: 58d364c7120b5 ("ebtables: Use do_parse() from xshared")
Signed-off-by: Phil Sutter <phil@nwl.cc>
cs.options&OPT_LIST_C);
else if (p.command & CMD_LIST_RULES)
ret = nft_cmd_rule_list_save(h, p.chain, p.table,
- p.rulenum - 1,
+ p.rulenum,
cs.options & OPT_VERBOSE);
if (ret && (p.command & CMD_ZERO))
ret = nft_cmd_chain_zero_counters(h, p.chain, p.table,