Bluetooth: Mesh: fix SRPL always accepting sol pdus with sseq 0
Updated logic in srpl_entry_save. Signed-off-by: Stine Åkredalen <stine.akredalen@nordicsemi.no>
This commit is contained in:
parent
d5b68bad12
commit
a1b9f0a7d6
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ static int srpl_entry_save(struct bt_mesh_subnet *sub, uint32_t sseq, uint16_t s
|
|||
|
||||
entry = srpl_find_by_addr(ssrc);
|
||||
if (entry) {
|
||||
if (entry->sseq >= sseq && sseq != 0) {
|
||||
if (entry->sseq >= sseq) {
|
||||
LOG_WRN("Higher or equal SSEQ already saved for this SSRC");
|
||||
return -EALREADY;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue