netfilter: ipset: Use the stored first cidr value instead of '1'
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 1 Jun 2011 21:35:49 +0000 (23:35 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 Jun 2011 23:35:29 +0000 (01:35 +0200)
commitb48e3c5c323fea08c12a340cbb8dcc8ca2431d5b
treeecdc04db5d540858e3186fd762498d7d7e1d8c02
parentfcbf12817100d23890832801507107718a1fa448
netfilter: ipset: Use the stored first cidr value instead of '1'

The stored cidr values are tried one after anoter. The boolean
condition evaluated to '1' instead of the first stored cidr or
the default host cidr.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_hash_ipportnet.c
net/netfilter/ipset/ip_set_hash_net.c
net/netfilter/ipset/ip_set_hash_netport.c