]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Use correct built-in chain count
authorPhil Sutter <phil@nwl.cc>
Thu, 2 Aug 2018 15:05:13 +0000 (17:05 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 4 Aug 2018 12:15:17 +0000 (14:15 +0200)
commitf7bbdb0091f2c2baf43bb1c14715bc850181a021
treea204e4dabe5b2fae2337980c91ffa0e32ba85608
parentae574b2b882e84c1081706c8386e83e468e622f6
xtables: Use correct built-in chain count

In nft_chain_builtin_init(), The wrong macro was used for iterating over
the built-in chains of a given table. That array's length is defined
using NF_INET_NUMHOOKS, not NF_IP_NUMHOOKS. Though this change is rather
cosmetic since both macros resolve into the same value.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft.c