summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-06-01 23:35:48 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2011-06-06 01:35:15 +0200
commitfcbf12817100d23890832801507107718a1fa448 (patch)
tree396c12f52dac510d6c7ca419364d765b1288fd3f /net
parentafb523c54718da57ff661950bd3287ec9eeb66bd (diff)
downloadop-kernel-dev-fcbf12817100d23890832801507107718a1fa448.zip
op-kernel-dev-fcbf12817100d23890832801507107718a1fa448.tar.gz
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>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/ipset/ip_set_core.c2
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 8041bef..42aa64b 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;
}
}
OpenPOWER on IntegriCloud