diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-09-27 10:59:38 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-09-27 10:59:38 +0000 | 
| commit | 31043efa1d0516eadb9c1e536be1ed7b897fb287 (patch) | |
| tree | 127af000d7ac985c0a0806d00fe0e792778297bc | |
| parent | 83857f9b11fec1d48fba45f0ce83b9924c010456 (diff) | |
Make sure passkey agents get Cancel and Release methods if necessary in the security mode 3 case
| -rw-r--r-- | hcid/dbus.c | 5 | 
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); | 
