netfilter: ipset: Fix range bug in hash:ip,port,net
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 19 Nov 2012 14:37:46 +0000 (15:37 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 19 Nov 2012 14:37:46 +0000 (15:37 +0100)
commit17b14ca25e9cd6c5cd7605941f6120e405a84f8b
treea4ccacf489278a85e6252dee1bdb56d345faa6f1
parentf4a75d2eb7b1e2206094b901be09adb31ba63681
netfilter: ipset: Fix range bug in hash:ip,port,net

Due to the missing ininitalization at adding/deleting entries, when
a plain_ip,port,net element was the object, multiple elements were
added/deleted instead. The bug came from the missing dangling
default initialization.

The error-prone default initialization is corrected in all hash:* types.
net/netfilter/ipset/ip_set_hash_ip.c
net/netfilter/ipset/ip_set_hash_ipport.c
net/netfilter/ipset/ip_set_hash_ipportip.c
net/netfilter/ipset/ip_set_hash_ipportnet.c