Skip to content
Commit 84ae2f11 authored by Jiahao Li's avatar Jiahao Li Committed by Anas Nashif
Browse files

Bluetooth: Mesh: Fixes existing friend lookup in Friend Request handling



Currently, when handling a Friend Request message with `prev_addr` set,
we look up existing friend entry using `prev_addr` as the address.
However, `prev_addr` is the address of the requesting node's previous
friend, NOT the address of the requesting node itself. Therefore, we
should always look up existing friend entry using `rx->ctx.addr` as the
address.

Signed-off-by: default avatarJiahao Li <reg@ljh.me>
parent 5a0f7e44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment