mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-29 17:53:58 +00:00
netfilter: nft_set_bitmap: initialize set element extension in lookups
Otherwise, nft_lookup might dereference an uninitialized pointer to the
element extension.
Fixes: 665153ff57
("netfilter: nf_tables: add bitmap set type")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
7c6b412162
commit
24791b9aa1
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ static bool nft_bitmap_lookup(const struct net *net, const struct nft_set *set,
|
||||||
u32 idx, off;
|
u32 idx, off;
|
||||||
|
|
||||||
nft_bitmap_location(set, key, &idx, &off);
|
nft_bitmap_location(set, key, &idx, &off);
|
||||||
|
*ext = NULL;
|
||||||
|
|
||||||
return nft_bitmap_active(priv->bitmap, idx, off, genmask);
|
return nft_bitmap_active(priv->bitmap, idx, off, genmask);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue