netfilter: xtables: change matches to return error code
[deliverable/linux.git] / net / bridge / netfilter / ebt_mark_m.c
index 1e5b0b316fbe663e196fcc0172b752de6deaea2b..e4366c0a1a43d615cca39c3174506a15b4ef3965 100644 (file)
@@ -27,12 +27,12 @@ static int ebt_mark_mt_check(const struct xt_mtchk_param *par)
        const struct ebt_mark_m_info *info = par->matchinfo;
 
        if (info->bitmask & ~EBT_MARK_MASK)
-               return false;
+               return -EINVAL;
        if ((info->bitmask & EBT_MARK_OR) && (info->bitmask & EBT_MARK_AND))
-               return false;
+               return -EINVAL;
        if (!info->bitmask)
-               return false;
-       return true;
+               return -EINVAL;
+       return 0;
 }
 
 
This page took 0.026561 seconds and 5 git commands to generate.