]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/netfilter/ipset/ip_set_core.c
netfilter: ipset: Consistent userspace testing with nomatch flag
[karo-tx-linux.git] / net / netfilter / ipset / ip_set_core.c
index f7713900798308557c134b00e9db3975e3697ecb..c8c303c3386fbca9aaf1c5e4aa94f5985da05bab 100644 (file)
@@ -1489,8 +1489,7 @@ ip_set_utest(struct sock *ctnl, struct sk_buff *skb,
        if (ret == -EAGAIN)
                ret = 1;
 
-       return (ret < 0 && ret != -ENOTEMPTY) ? ret :
-               ret > 0 ? 0 : -IPSET_ERR_EXIST;
+       return ret > 0 ? 0 : -IPSET_ERR_EXIST;
 }
 
 /* Get headed data of a set */