Re: [PATCH v3 nf-next] netfilter: connlimit: split xt_connlimit into front/backend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yi-Hung Wei <yihung.wei@xxxxxxxxx> wrote:
> On Wed, Dec 6, 2017 at 4:41 AM, Florian Westphal <fw@xxxxxxxxx> wrote:
> > +static int __init nf_conncount_modinit(void)
> > +{
> > +       int ret, i;
> > +
> > +       BUILD_BUG_ON(CONNCOUNT_LOCK_SLOTS > CONNCOUNT_SLOTS);
> > +       BUILD_BUG_ON((CONNCOUNT_SLOTS % CONNCOUNT_LOCK_SLOTS) != 0);
> > +
> > +       return ret;
> I test it with iptables -m connlimit, and nf_conncount may fail to
> load sometimes.
> 
> It turns out that it is because ret is not used in this function.
> Shall we get rid of ret, and return 0 here?

Yes.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux