summaryrefslogtreecommitdiffstats
path: root/iptables/xtables.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-02-07 09:20:10 +0100
committerFlorian Westphal <fw@strlen.de>2019-02-11 17:13:09 +0100
commit519f5bcd9c07e0092a1a019176c82fb3bfbd9ced (patch)
tree5cde735fa6d5d8cc2dd6582441983b26bdbe2692 /iptables/xtables.c
parentaff1162b3e4b7ef805425a40306044c7d7dddc67 (diff)
nft: Eliminate dead code in __nft_rule_list
If passed a rulenum > 0, the function uses nftnl_rule_lookup_byindex() and returns early. Negative rulenum values are not supposed to happen, so the remaining code which iterates over the full list of rules does not need to respect rulenum anymore. Fixes: 039b048965210 ("nft: Make use of nftnl_rule_lookup_byindex()") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables.c')
0 files changed, 0 insertions, 0 deletions