mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-31 14:20:07 +00:00
nimble/host: Fix NULL pointer passed as a parameter
This commit is contained in:
@@ -228,7 +228,7 @@ ble_hs_hci_process_ack(uint16_t expected_opcode,
|
||||
}
|
||||
|
||||
if (rc == 0) {
|
||||
if (params_buf == NULL) {
|
||||
if (params_buf == NULL || out_ack->bha_params == NULL) {
|
||||
out_ack->bha_params_len = 0;
|
||||
} else {
|
||||
if (out_ack->bha_params_len > params_buf_len) {
|
||||
|
||||
Reference in New Issue
Block a user