Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d883232 authored by Jozsef Kadlecsik's avatar Jozsef Kadlecsik Committed by Patrick McHardy
Browse files

netfilter: ipset: fix return code for destroy when sets are in use

parent b66554cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -776,7 +776,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;
			}
		}