netfilter: xtables: change matches to return error code
[deliverable/linux.git] / net / ipv6 / netfilter / ip6t_rt.c
index 76397f35eafd1ec13ce5e97a206d6a8cb5022880..09322720d2a673b1a62cc779806d744841281e07 100644 (file)
@@ -189,17 +189,17 @@ static int rt_mt6_check(const struct xt_mtchk_param *par)
 
        if (rtinfo->invflags & ~IP6T_RT_INV_MASK) {
                pr_debug("unknown flags %X\n", rtinfo->invflags);
-               return false;
+               return -EINVAL;
        }
        if ((rtinfo->flags & (IP6T_RT_RES | IP6T_RT_FST_MASK)) &&
            (!(rtinfo->flags & IP6T_RT_TYP) ||
             (rtinfo->rt_type != 0) ||
             (rtinfo->invflags & IP6T_RT_INV_TYP))) {
                pr_debug("`--rt-type 0' required before `--rt-0-*'");
-               return false;
+               return -EINVAL;
        }
 
-       return true;
+       return 0;
 }
 
 static struct xt_match rt_mt6_reg __read_mostly = {
This page took 0.02807 seconds and 5 git commands to generate.