summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-09-27 10:59:38 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-09-27 10:59:38 +0000
commit31043efa1d0516eadb9c1e536be1ed7b897fb287 (patch)
tree127af000d7ac985c0a0806d00fe0e792778297bc /hcid
parent83857f9b11fec1d48fba45f0ce83b9924c010456 (diff)
Make sure passkey agents get Cancel and Release methods if necessary in the security mode 3 case
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/dbus.c b/hcid/dbus.c
index df0229fe..06abd9d3 100644
--- a/hcid/dbus.c
+++ b/hcid/dbus.c
@@ -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);