mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(bt/bluedroid): Fix missing NULL check on p_cfg in AVDT_ReconfigReq
Closes SEC-1187
This commit is contained in:
@@ -776,6 +776,10 @@ UINT16 AVDT_ReconfigReq(UINT8 handle, tAVDT_CFG *p_cfg)
|
||||
UINT16 result = AVDT_SUCCESS;
|
||||
tAVDT_SCB_EVT evt;
|
||||
|
||||
if (p_cfg == NULL) {
|
||||
return AVDT_BAD_PARAMS;
|
||||
}
|
||||
|
||||
/* map handle to scb */
|
||||
if ((p_scb = avdt_scb_by_hdl(handle)) == NULL) {
|
||||
result = AVDT_BAD_HANDLE;
|
||||
|
||||
Reference in New Issue
Block a user