summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-06-16 18:53:51 +0200
committerPatrick McHardy <kaber@trash.net>2011-06-16 18:53:51 +0200
commitc64562eaf2ad61d7492788ef95678f52d0d28f2a (patch)
tree31cea96ba036115dbd4130a7149753ed75d556ae /include
parentd0d9e0a5a8db05b2179c2ffb25d1c2850cce3c8e (diff)
downloadlinux-c64562eaf2ad61d7492788ef95678f52d0d28f2a.tar.gz
linux-c64562eaf2ad61d7492788ef95678f52d0d28f2a.tar.bz2
linux-c64562eaf2ad61d7492788ef95678f52d0d28f2a.zip
netfilter: ipset: adding ranges to hash types with timeout could still fail, fixed
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter/ipset/ip_set_ahash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter/ipset/ip_set_ahash.h b/include/linux/netfilter/ipset/ip_set_ahash.h
index 905e2ac32daf..a099d40d120a 100644
--- a/include/linux/netfilter/ipset/ip_set_ahash.h
+++ b/include/linux/netfilter/ipset/ip_set_ahash.h
@@ -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;
}