fix(bt/bluedroid): Fix missing NULL check on p_cfg in AVDT_ReconfigReq

Closes SEC-1187
This commit is contained in:
yangfeng
2026-07-16 11:30:38 +08:00
committed by BOT
parent 5595996fe8
commit e8108fefe1
@@ -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;