Skip to content

Commit

Permalink
netfilter: nft_set_bitmap: incorrect bitmap size
Browse files Browse the repository at this point in the history
priv->bitmap_size stores the real bitmap size, instead of the full
struct nft_bitmap object.

Fixes: 665153f ("netfilter: nf_tables: add bitmap set type")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Feb 26, 2017
1 parent 4b86c45 commit 13aa5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nft_set_bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 13aa5a8

Please sign in to comment.