|
@@ -196,7 +196,7 @@ static int nft_symhash_init(const struct nft_ctx *ctx,
|
|
|
priv->dreg = nft_parse_register(tb[NFTA_HASH_DREG]);
|
|
priv->dreg = nft_parse_register(tb[NFTA_HASH_DREG]);
|
|
|
|
|
|
|
|
priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULUS]));
|
|
priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULUS]));
|
|
|
- if (priv->modulus <= 1)
|
|
|
|
|
|
|
+ if (priv->modulus < 1)
|
|
|
return -ERANGE;
|
|
return -ERANGE;
|
|
|
|
|
|
|
|
if (priv->offset + priv->modulus - 1 < priv->offset)
|
|
if (priv->offset + priv->modulus - 1 < priv->offset)
|