diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-06-01 23:35:48 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-06-06 01:35:15 +0200 |
commit | fcbf12817100d23890832801507107718a1fa448 (patch) | |
tree | 396c12f52dac510d6c7ca419364d765b1288fd3f | |
parent | afb523c54718da57ff661950bd3287ec9eeb66bd (diff) | |
download | talos-op-linux-fcbf12817100d23890832801507107718a1fa448.tar.gz talos-op-linux-fcbf12817100d23890832801507107718a1fa448.zip |
netfilter: ipset: Fix return code for destroy when sets are in use
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 8041befc6555..42aa64b6b0b1 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -767,7 +767,7 @@ ip_set_destroy(struct sock *ctnl, struct sk_buff *skb, if (!attr[IPSET_ATTR_SETNAME]) { for (i = 0; i < ip_set_max; i++) { if (ip_set_list[i] != NULL && ip_set_list[i]->ref) { - ret = IPSET_ERR_BUSY; + ret = -IPSET_ERR_BUSY; goto out; } } |