netfilter: ipset: Fix range bug in hash:ip,port,net
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 19 Nov 2012 06:42:21 +0000 (06:42 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 21 Nov 2012 22:49:02 +0000 (23:49 +0100)
commit4fe198e6b136c516df493ec325ab8f70d470f477
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.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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