diff options
author | 2018-11-27 17:15:56 +0100 | |
---|---|---|
committer | 2018-12-14 00:02:26 +0100 | |
commit | 8e350ce1f78ef5a7d8250b9b4bdf733ce2fa5b1f (patch) | |
tree | 9d2652731cc63f9a802edfb2b3efa9a5ed682072 /net/netfilter/ipset/ip_set_core.c | |
parent | netfilter: nat: remove l4 protocol port rovers (diff) | |
download | linux-8e350ce1f78ef5a7d8250b9b4bdf733ce2fa5b1f.tar.gz linux-8e350ce1f78ef5a7d8250b9b4bdf733ce2fa5b1f.tar.bz2 linux-8e350ce1f78ef5a7d8250b9b4bdf733ce2fa5b1f.zip |
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: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipset/ip_set_core.c')
-rw-r--r-- | net/netfilter/ipset/ip_set_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c index 1c3614aca34e..e3113aa1a975 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -1949,7 +1949,7 @@ static int 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); |