Skip to content
Commit 6a562356 authored by Jiahao Li's avatar Jiahao Li Committed by Johan Hedberg
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 19b968a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment