Fix bug: sometimes valid entries in hash:* types of sets were evicted
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 16 Feb 2017 19:47:30 +0000 (20:47 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sun, 19 Feb 2017 18:08:32 +0000 (19:08 +0100)
commit50054a9223aaf79985c55ef7dd090ced15581567
tree0d8a3ca91f5c2285aed2ad0a1b4baaaa9bd3f28d
parentf95d7a46bc5722767c30ee223c8b67dd0f2e8793
Fix bug: sometimes valid entries in hash:* types of sets were evicted

Wrong index was used and therefore when shrinking a hash bucket at
deleting an entry, valid entries could be evicted as well.
Thanks to Eric Ewanco for the thorough bugreport.

Fixes netfilter bugzilla #1119

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_hash_gen.h