netfilter: ipset: adding ranges to hash types with timeout could still fail, fixed
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 16 Jun 2011 16:53:51 +0000 (18:53 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 16 Jun 2011 16:53:51 +0000 (18:53 +0200)
The patch "Fix adding ranges to hash types" had got a mistypeing
in the timeout variant of the hash types, which actually made
the patch ineffective. Fixed!

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/ipset/ip_set_ahash.h

index 905e2ac..a099d40 100644 (file)
@@ -835,7 +835,7 @@ type_pf_tadd(struct ip_set *set, void *value, u32 timeout, u32 flags)
        }
        ret = type_pf_elem_tadd(n, d, timeout);
        if (ret != 0) {
-               if (ret == -EEXIST)
+               if (ret == -EAGAIN)
                        type_pf_data_next(h, d);
                goto out;
        }