dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Jozsef Kadlecsik 2011-06-16 18:53:51 +02:00 committed by Patrick McHardy
parent d0d9e0a5a8
commit c64562eaf2
1 changed files with 1 additions and 1 deletions

View 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;
}