Skip to content

Commit e744a88

Browse files
Marceau Fillonsjanc
authored andcommitted
host/ble_att_svr: Reset handles index on attributes reset.
1 parent 67d30b6 commit e744a88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nimble/host/src/ble_att_svr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,6 +2671,8 @@ ble_att_svr_reset(void)
26712671
ble_att_svr_entry_free(entry);
26722672
}
26732673

2674+
ble_att_svr_id = 0;
2675+
26742676
/* Note: prep entries do not get freed here because it is assumed there are
26752677
* no established connections.
26762678
*/

0 commit comments

Comments
 (0)