netfilter: xtables: change targets to return error code
[deliverable/linux.git] / net / bridge / netfilter / ebt_ulog.c
index f554bc2515d67d071236f085ad520c665c62336f..f77b42d8e87db625913b045da62ceffc9f94ae12 100644 (file)
@@ -254,14 +254,14 @@ static int ebt_ulog_tg_check(const struct xt_tgchk_param *par)
        struct ebt_ulog_info *uloginfo = par->targinfo;
 
        if (uloginfo->nlgroup > 31)
-               return false;
+               return -EINVAL;
 
        uloginfo->prefix[EBT_ULOG_PREFIX_LEN - 1] = '\0';
 
        if (uloginfo->qthreshold > EBT_ULOG_MAX_QLEN)
                uloginfo->qthreshold = EBT_ULOG_MAX_QLEN;
 
-       return true;
+       return 0;
 }
 
 static struct xt_target ebt_ulog_tg_reg __read_mostly = {
This page took 0.024809 seconds and 5 git commands to generate.