commit | 84ae2f11ed07335d188af0d302954dc54de14746 | [log] [tgz] |
---|---|---|
author | Jiahao Li <reg@ljh.me> | Fri Jan 11 23:39:52 2019 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Jan 29 07:23:22 2019 -0500 |
tree | f806bd8d41a10563024f1ce7f809826d346280c4 | |
parent | 5a0f7e44f16f32d36777d709e33264fed1bbc322 [diff] |
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: Jiahao Li <reg@ljh.me>