Skip to content

Commit 3ab275f

Browse files
MariuszSkamrajhedberg
authored andcommitted
Bluetooth: mesh: Fix net_id net_buf_pull in secure_beacon_recv
This fixes usage of net_buf_simple_pull_mem to pull the net_id from network buffer. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent 3a8767c commit 3ab275f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/mesh/beacon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static void secure_beacon_recv(struct net_buf_simple *buf)
283283
data = buf->data;
284284

285285
flags = net_buf_simple_pull_u8(buf);
286-
net_id = net_buf_simple_pull(buf, 8);
286+
net_id = net_buf_simple_pull_mem(buf, 8);
287287
iv_index = net_buf_simple_pull_be32(buf);
288288
auth = buf->data;
289289

0 commit comments

Comments
 (0)