mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 17:14:21 +08:00
Make sure passkey agents get Cancel and Release methods if necessary in the security mode 3 case
This commit is contained in:
parent
83857f9b11
commit
31043efa1d
@ -1543,7 +1543,10 @@ void hcid_dbus_conn_complete(bdaddr_t *local, uint8_t status, uint16_t handle, b
|
||||
if (status) {
|
||||
struct slist *l;
|
||||
|
||||
l = slist_find(pdata->pin_reqs, &peer, pin_req_cmp);
|
||||
cancel_passkey_agent_requests(pdata->passkey_agents, path, peer);
|
||||
release_passkey_agents(pdata, peer);
|
||||
|
||||
l = slist_find(pdata->pin_reqs, peer, pin_req_cmp);
|
||||
if (l) {
|
||||
struct pending_pin_req *p = l->data;
|
||||
pdata->pin_reqs = slist_remove(pdata->pin_reqs, p);
|
||||
|
Loading…
Reference in New Issue
Block a user