netfilter: xtables: change matches to return error code
[sfrench/cifs-2.6.git] / net / netfilter / xt_state.c
index 8b15b1317f1f854a32113c141574a03426cd82bd..8e8c9df51784a913f3da19fb2f782f4611b8a94e 100644 (file)
@@ -42,9 +42,9 @@ static int state_mt_check(const struct xt_mtchk_param *par)
        if (nf_ct_l3proto_try_module_get(par->family) < 0) {
                pr_info("cannot load conntrack support for proto=%u\n",
                        par->family);
-               return false;
+               return -EINVAL;
        }
-       return true;
+       return 0;
 }
 
 static void state_mt_destroy(const struct xt_mtdtor_param *par)