OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1fc137
)
netfilter: nft_hash: fix nft_hash_deactivate
author
Florian Westphal
<fw@strlen.de>
Thu, 2 Nov 2017 18:04:47 +0000
(19:04 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Mon, 6 Nov 2017 15:48:37 +0000
(16:48 +0100)
Jindřich Makovička says:
The logical OR looks fishy to me. Shouldn't be && there instead?
Link:
https://bugzilla.netfilter.org/show_bug.cgi?id=1199
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_hash.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nft_set_hash.c
b/net/netfilter/nft_set_hash.c
index
0fa01d7
..
650677f
100644
(file)
--- a/
net/netfilter/nft_set_hash.c
+++ b/
net/netfilter/nft_set_hash.c
@@
-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;