projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netfilter: ipset: off by one in ip_set_nfnl_get_byindex()
[deliverable/linux.git]
/
net
/
netfilter
/
ipset
/
ip_set_core.c
diff --git
a/net/netfilter/ipset/ip_set_core.c
b/net/netfilter/ipset/ip_set_core.c
index 912e5a05b79dbdc2de8aaa3729e08af01888dc4e..86f9d76b1464b1b0d5e8b5fc9f9c0c129713bd57 100644
(file)
--- a/
net/netfilter/ipset/ip_set_core.c
+++ b/
net/netfilter/ipset/ip_set_core.c
@@
-659,7
+659,7
@@
ip_set_nfnl_get_byindex(struct net *net, ip_set_id_t index)
struct ip_set *set;
struct ip_set_net *inst = ip_set_pernet(net);
- if (index > inst->ip_set_max)
+ if (index >
=
inst->ip_set_max)
return IPSET_INVALID_ID;
nfnl_lock(NFNL_SUBSYS_IPSET);
This page took
0.031366 seconds
and
5
git commands to generate.