Bluetooth: Mesh: Friend: Fix poll timeout type
The Poll Timeout needs to be at least 24 bits, so u16_t doesn't suffice and will potentially result in truncation. Use u32_t, thereby also fixing a coverity warning. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
9b87e0f2cc
commit
6fda8b2b4d
|
@ -777,7 +777,7 @@ int bt_mesh_friend_req(struct bt_mesh_net_rx *rx, struct net_buf_simple *buf)
|
|||
struct bt_mesh_subnet *sub = rx->sub;
|
||||
struct bt_mesh_friend *frnd = NULL;
|
||||
u16_t old_friend;
|
||||
u16_t poll_to;
|
||||
u32_t poll_to;
|
||||
int i;
|
||||
|
||||
if (buf->len < sizeof(*msg)) {
|
||||
|
|
Loading…
Reference in a new issue