Bluetooth: GATT: Fix possible crash while resubscribing
When reconnecting the code will attempt to recover the subscriptions but it was not setting any callback causing the bt_att_req.func to be NULL. Fixes #5982 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
195ffc1e72
commit
9c92609a66
1 changed files with 1 additions and 1 deletions
|
@ -2064,7 +2064,7 @@ static void add_subscriptions(struct bt_conn *conn)
|
|||
* it properly.
|
||||
*/
|
||||
gatt_write_ccc(conn, params->ccc_handle, params->value,
|
||||
NULL, params);
|
||||
gatt_write_ccc_rsp, params);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue