]> granicus.if.org Git - ipset/commit
Fix range bug in hash:ip,port,net
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 5 Nov 2012 15:56:42 +0000 (16:56 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 5 Nov 2012 15:56:42 +0000 (16:56 +0100)
commit12ce5f09acfece76aeb5021de583d156567249d5
treebd52ff3b1eb7284ddbdf8e125e603b3fe500a39a
parent79227b290d1ce936ca4c09652b4b089397d25f4b
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 to be added, 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.
kernel/net/netfilter/ipset/ip_set_hash_ip.c
kernel/net/netfilter/ipset/ip_set_hash_ipport.c
kernel/net/netfilter/ipset/ip_set_hash_ipportip.c
kernel/net/netfilter/ipset/ip_set_hash_ipportnet.c