projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0d9e0a
)
netfilter: ipset: adding ranges to hash types with timeout could still fail, fixed
author
Jozsef Kadlecsik
<
[email protected]
>
Thu, 16 Jun 2011 16:53:51 +0000
(18:53 +0200)
committer
Patrick McHardy
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Patrick McHardy <
[email protected]
>
include/linux/netfilter/ipset/ip_set_ahash.h
patch
|
blob
|
history
diff --git
a/include/linux/netfilter/ipset/ip_set_ahash.h
b/include/linux/netfilter/ipset/ip_set_ahash.h
index 905e2ac32dafaed85d23595b092e82217005ac47..a099d40d120af42e75eadcae3e26a153d46fcfaa 100644
(file)
--- 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 == -E
EXIST
)
+ if (ret == -E
AGAIN
)
type_pf_data_next(h, d);
goto out;
}