]> granicus.if.org Git - ipset/commitdiff
ip_set_flush returned -EPROTO instead of -IPSET_ERR_PROTOCOL, fixed
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 23 May 2011 08:22:47 +0000 (10:22 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 23 May 2011 08:22:47 +0000 (10:22 +0200)
kernel/net/netfilter/ipset/ip_set_core.c

index 41205d0720eafdb063027c1f8dcf8b562faeff26..f093b0148f6c439f53ee50b8d997fe3acf42f7d9 100644 (file)
@@ -825,7 +825,7 @@ ip_set_flush(struct sock *ctnl, struct sk_buff *skb,
        ip_set_id_t i;
 
        if (unlikely(protocol_failed(attr)))
-               return -EPROTO;
+               return -IPSET_ERR_PROTOCOL;
 
        if (!attr[IPSET_ATTR_SETNAME]) {
                for (i = 0; i < ip_set_max; i++)