mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/bluedroid_gatt_clcb_use_afer_free_issue' into 'master'
component/bt: Fix gatt clcb use-after-free issue See merge request espressif/esp-idf!10989
This commit is contained in:
commit
0a61f04f3f
@ -2341,6 +2341,7 @@ void gatt_cleanup_upon_disc(BD_ADDR bda, UINT16 reason, tBT_TRANSPORT transport)
|
||||
GATT_TRACE_DEBUG ("found p_clcb conn_id=%d clcb_idx=%d", p_clcb->conn_id, p_clcb->clcb_idx);
|
||||
if (p_clcb->operation != GATTC_OPTYPE_NONE) {
|
||||
gatt_end_operation(p_clcb, GATT_ERROR, NULL);
|
||||
p_clcb = NULL;
|
||||
}
|
||||
gatt_clcb_dealloc(p_clcb);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user