summaryrefslogtreecommitdiffstats
path: root/net/netfilter/ipset/ip_set_bitmap_port.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik2011-06-16 18:49:17 +0200
committerPatrick McHardy2011-06-16 18:49:17 +0200
commit3d14b171f004f75c2d1e82e10545966f94132705 (patch)
tree149f8ac4663f9824c636ccf059664e5e61a920fe /net/netfilter/ipset/ip_set_bitmap_port.c
parentnetfilter: ipset: support listing setnames and headers too (diff)
downloadkernel-qcow2-linux-3d14b171f004f75c2d1e82e10545966f94132705.tar.gz
kernel-qcow2-linux-3d14b171f004f75c2d1e82e10545966f94132705.tar.xz
kernel-qcow2-linux-3d14b171f004f75c2d1e82e10545966f94132705.zip
netfilter: ipset: fix adding ranges to hash types
When ranges are added to hash types, the elements may trigger rehashing the set. However, the last successfully added element was not kept track so the adding started again with the first element after the rehashing. Bug reported by Mr Dash Four. Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/ipset/ip_set_bitmap_port.c')
-rw-r--r--net/netfilter/ipset/ip_set_bitmap_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_bitmap_port.c b/net/netfilter/ipset/ip_set_bitmap_port.c
index 0b0ae19d0290..a6a5b3558ddc 100644
--- a/net/netfilter/ipset/ip_set_bitmap_port.c
+++ b/net/netfilter/ipset/ip_set_bitmap_port.c
@@ -231,7 +231,7 @@ bitmap_port_kadt(struct ip_set *set, const struct sk_buff *skb,
static int
bitmap_port_uadt(struct ip_set *set, struct nlattr *tb[],
- enum ipset_adt adt, u32 *lineno, u32 flags)
+ enum ipset_adt adt, u32 *lineno, u32 flags, bool retried)
{
struct bitmap_port *map = set->data;
ipset_adtfn adtfn = set->variant->adt[adt];