netfilter: nft_hash: fix nft_hash_deactivate
Subsystems (2)
Florian Westphal
maintainerPATCH 1/1 netfilter: nft_hash: fix nft_hash_deactivate
Jindřich Makovička says:
The logical OR looks fishy to me. Shouldn't be && there instead?
Signed-off-by Florian Westphal <[email protected]>
--- net/netfilter/nft_set_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nft_set_hash.c +1 -1
@@ -494,7 +494,7 @@ static void *nft_hash_deactivate(const struct net *net, hash =reciprocal_scale (hash, priv->buckets);hlist_for_each_entry (he, &priv->table[hash], node) {if (!memcmp (nft_set_ext_key (&this->ext), &elem->key.val, - set->klen) || + set->klen) &&nft_set_elem_active (&he->ext, genmask)) {nft_set_elem_change_active (net, set, &he->ext);return he;
Signature · 1 line
2.13.6
Applied to nf-next, thanks for fixing up this.