]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netfilter/xt_rateest.c
netfilter: xtables: change matches to return error code
[net-next-2.6.git] / net / netfilter / xt_rateest.c
index 4fc6a917f6de5b30d55de8dba82531be03e67826..0b5c6122737d4fb6878a6079ccca4b07d01cf311 100644 (file)
@@ -74,7 +74,7 @@ xt_rateest_mt(const struct sk_buff *skb, const struct xt_match_param *par)
        return ret;
 }
 
-static bool xt_rateest_mt_checkentry(const struct xt_mtchk_param *par)
+static int xt_rateest_mt_checkentry(const struct xt_mtchk_param *par)
 {
        struct xt_rateest_match_info *info = par->matchinfo;
        struct xt_rateest *est1, *est2;
@@ -109,12 +109,12 @@ static bool xt_rateest_mt_checkentry(const struct xt_mtchk_param *par)
 
        info->est1 = est1;
        info->est2 = est2;
-       return true;
+       return 0;
 
 err2:
        xt_rateest_put(est1);
 err1:
-       return false;
+       return -EINVAL;
 }
 
 static void xt_rateest_mt_destroy(const struct xt_mtdtor_param *par)