Skip to content

Commit 2041682

Browse files
PavelVPVaescolar
authored andcommitted
bluetooth: mesh: brg_cfg_cli: Initialize prohibited value
Coverity complains about uninitialized prohibited fields. Even though it is not used because it is "prohibited", it is simpler to just initialized it with the value received from a server. Fixes #81939 Coverity-CID: 434649 Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 5ae4f11 commit 2041682

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/mesh/brg_cfg_cli.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static int subnets_list(const struct bt_mesh_model *model, struct bt_mesh_msg_ct
7777

7878
net_idx_filter = net_buf_simple_pull_le16(buf);
7979
subnets_list.net_idx_filter.filter = net_idx_filter & BIT_MASK(2);
80+
subnets_list.net_idx_filter.prohibited = (net_idx_filter >> 2) & BIT_MASK(2);
8081
subnets_list.net_idx_filter.net_idx = (net_idx_filter >> 4) & BIT_MASK(12);
8182
subnets_list.start_idx = net_buf_simple_pull_u8(buf);
8283

0 commit comments

Comments
 (0)