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:
Stine Åkredalen 2024-01-31 04:03:52 -08:00 committed by David Leach
commit a1b9f0a7d6

View file

@ -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;
}