Commit 13aa5a8f authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nft_set_bitmap: incorrect bitmap size

priv->bitmap_size stores the real bitmap size, instead of the full
struct nft_bitmap object.

Fixes: 665153ff ("netfilter: nf_tables: add bitmap set type")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 4b86c459
......@@ -258,7 +258,7 @@ static int nft_bitmap_init(const struct nft_set *set,
{
struct nft_bitmap *priv = nft_set_priv(set);
priv->bitmap_size = nft_bitmap_total_size(set->klen);
priv->bitmap_size = nft_bitmap_size(set->klen);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment