]> granicus.if.org Git - ipset/commitdiff
Fix return code for destroy when sets are in use
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 28 May 2011 21:16:51 +0000 (23:16 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 28 May 2011 21:16:51 +0000 (23:16 +0200)
kernel/net/netfilter/ipset/ip_set_core.c

index dd657cad251ba5a4973fd9480817d9d7ea0a97f0..297d03b3212374ec8e0914d248e6279d844724e4 100644 (file)
@@ -781,7 +781,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;
                        }
                }