mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-17 10:57:22 +00:00
No jira ticket: fix uninitialized local variable.
X-Original-Commit: 79e45a56bb9f9f32604324760d275bc7cf75bdc2
This commit is contained in:
@@ -992,12 +992,12 @@ ble_ll_ctrl_rx_conn_update(struct ble_ll_conn_sm *connsm, uint8_t *dptr,
|
||||
|
||||
/* XXX: validate them at some point. If they dont check out, we
|
||||
return the unknown response */
|
||||
rsp_opcode = BLE_ERR_MAX;
|
||||
|
||||
/* If instant is in the past, we have to end the connection */
|
||||
conn_events = (reqdata->instant - connsm->event_cntr) & 0xFFFF;
|
||||
if (conn_events >= 32767) {
|
||||
ble_ll_conn_timeout(connsm, BLE_ERR_INSTANT_PASSED);
|
||||
rsp_opcode = BLE_ERR_MAX;
|
||||
} else {
|
||||
connsm->csmflags.cfbit.conn_update_sched = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user