nimble/host: Fix NULL pointer passed as a parameter

This commit is contained in:
freddie
2019-12-16 10:52:14 +01:00
committed by Szymon Janc
parent 8391e2a40d
commit 5010a2a99c
+1 -1
View File
@@ -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) {