mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-01 13:08:08 +00:00
Merge pull request #195 from rymanluk/ll_fix_terminate
nimble/ll: Fix checking len of TERMINATE_IND
This commit is contained in:
@@ -3908,7 +3908,7 @@ chk_rx_terminate_ind:
|
||||
|
||||
/* If we received a terminate IND, we must set some flags */
|
||||
if (is_ctrl && (opcode == BLE_LL_CTRL_TERMINATE_IND)
|
||||
&& (rx_pyld_len == BLE_LL_CTRL_TERMINATE_IND_LEN)) {
|
||||
&& (rx_pyld_len == (1 + BLE_LL_CTRL_TERMINATE_IND_LEN))) {
|
||||
connsm->csmflags.cfbit.terminate_ind_rxd = 1;
|
||||
connsm->rxd_disconnect_reason = rxbuf[3];
|
||||
reply = 1;
|
||||
|
||||
Reference in New Issue
Block a user