mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/btdm_fail_to_config_url_in_eir' into 'master'
components/bt: Fix fail to config URL in EIR See merge request idf/esp-idf!5352
This commit is contained in:
commit
45364fe54e
@ -694,7 +694,7 @@ void bta_dm_config_eir (tBTA_DM_MSG *p_data)
|
||||
}
|
||||
if (config_eir->eir_url) {
|
||||
p_bta_dm_eir_cfg->bta_dm_eir_url = osi_malloc(config_eir->eir_url_len);
|
||||
if (p_bta_dm_eir_cfg->bta_dm_eir_url == NULL) {
|
||||
if (p_bta_dm_eir_cfg->bta_dm_eir_url) {
|
||||
memcpy(p_bta_dm_eir_cfg->bta_dm_eir_url, config_eir->eir_url, config_eir->eir_url_len);
|
||||
} else {
|
||||
APPL_TRACE_ERROR("%s, malloc failed.", __func__);
|
||||
|
Loading…
x
Reference in New Issue
Block a user