summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Fourcot <florent.fourcot@wifirst.fr>2018-11-27 17:15:56 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2018-11-28 18:26:20 +0100
commit21c9f79121abb70324efe9fc19ef0fb3685afb1a (patch)
tree6c47bdb99b15a0f1392ebf4f1c5ca79af429c527
parent3bd458e42f23b2ff52596432a53fce708c21915b (diff)
netfilter: ipset: fix ip_set_byindex function
New function added by "Introduction of new commands and protocol version 7" is not working, since we return skb2 to user Signed-off-by: Victorien Molle <victorien.molle@wifirst.fr> Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr> Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
-rw-r--r--kernel/net/netfilter/ipset/ip_set_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/netfilter/ipset/ip_set_core.c b/kernel/net/netfilter/ipset/ip_set_core.c
index c2e32ee..b93805c 100644
--- a/kernel/net/netfilter/ipset/ip_set_core.c
+++ b/kernel/net/netfilter/ipset/ip_set_core.c
@@ -1976,7 +1976,7 @@ IPSET_CBFN(ip_set_byindex, struct net *net, struct sock *ctnl,
if (!nlh2)
goto nlmsg_failure;
if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, protocol(attr)) ||
- nla_put_string(skb, IPSET_ATTR_SETNAME, set->name))
+ nla_put_string(skb2, IPSET_ATTR_SETNAME, set->name))
goto nla_put_failure;
nlmsg_end(skb2, nlh2);