diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 15:16:43 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-24 11:23:42 +0200 |
commit | 7ae4fb1348874afbfd760d6b7a24e4ea2d6e67ab (patch) | |
tree | 8274ce62675891846b921ced8cd4517945c4beaa /iptables | |
parent | 8c786a351a441ff23ad5d9d1da8cec492f88f542 (diff) |
xtables: Fix for wrong assert() in __nft_table_flush()
The code obviously tries to assert that nft_table_builtin_find()
returned a valid pointer before dereferencing it, but the wrong argument
was given. Assume this is just a typo and insert the missing underscore.
Fixes: 9b896224e0bfc ("xtables: rework rule cache logic")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/nft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 48198edf..c67718c8 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1899,7 +1899,7 @@ static int __nft_table_flush(struct nft_handle *h, const char *table) batch_table_add(h, NFT_COMPAT_TABLE_FLUSH, t); _t = nft_table_builtin_find(h, table); - assert(t); + assert(_t); _t->initialized = false; flush_chain_cache(h, table); |