You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bluetooth: services: nus: fix unsafe use of conn_handle as array idx
It is not safe to assume that connection handles will start at zero
and always stay below the number of max connections. Therefore,
connection handle cannot, and should not, be used to index into
arrays or lists.
Fix this by using the nrf_sdh_ble_idx_get function to return
an index that has been assigned to the connection handle
by the softdevice handler.
Signed-off-by: Andreas Moltumyr <[email protected]>
0 commit comments