summaryrefslogtreecommitdiffstats
path: root/hcid/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/security.c')
-rw-r--r--hcid/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/security.c b/hcid/security.c
index f3c03ef2..f42738a5 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -465,14 +465,14 @@ static inline void conn_complete(int dev, bdaddr_t *sba, void *ptr)
{
evt_conn_complete *evt = ptr;
+ hcid_dbus_conn_complete(sba, evt->status, evt->handle, &evt->bdaddr);
+
if (evt->status)
return;
update_lastused(sba, &evt->bdaddr);
name_resolve(dev, &evt->bdaddr);
-
- hcid_dbus_conn_complete(sba, &evt->bdaddr);
}
static inline void disconn_complete(int dev, bdaddr_t *sba, void *ptr)