diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-05-24 10:20:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-05-26 19:08:11 +0200 |
commit | 9184a9cba622d9e38462ce11dff7da094b4fea84 (patch) | |
tree | ae35f60357455d32a7d08d106cde85befffcc78a | |
parent | netfilter: ipset: remove unused variable from type_pf_tdel() (diff) | |
download | linux-9184a9cba622d9e38462ce11dff7da094b4fea84.tar.xz linux-9184a9cba622d9e38462ce11dff7da094b4fea84.zip |
netfilter: ipset: fix ip_set_flush return code
ip_set_flush returned -EPROTO instead of -IPSET_ERR_PROTOCOL, fixed
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-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 72d1ac611fdc..8041befc6555 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -815,7 +815,7 @@ ip_set_flush(struct sock *ctnl, struct sk_buff *skb, ip_set_id_t i; if (unlikely(protocol_failed(attr))) - return -EPROTO; + return -IPSET_ERR_PROTOCOL; if (!attr[IPSET_ATTR_SETNAME]) { for (i = 0; i < ip_set_max; i++) |