netfilter: xtables: change matches to return error code
[safe/jmp/linux-2.6] / net / bridge / netfilter / ebt_pkttype.c
index 9b3c645..f34bcc3 100644 (file)
@@ -25,9 +25,9 @@ static int ebt_pkttype_mt_check(const struct xt_mtchk_param *par)
        const struct ebt_pkttype_info *info = par->matchinfo;
 
        if (info->invert != 0 && info->invert != 1)
-               return false;
+               return -EINVAL;
        /* Allow any pkt_type value */
-       return true;
+       return 0;
 }
 
 static struct xt_match ebt_pkttype_mt_reg __read_mostly = {