summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-security.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-security.c')
-rw-r--r--hcid/dbus-security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index 2cc4d44b..d2d634e6 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -583,7 +583,7 @@ void cancel_passkey_agent_requests(struct slist *agents, const char *path, bdadd
struct pending_agent_request *req = l->data;
next = l->next;
if (!strcmp(path, req->path) && !bacmp(addr, &req->bda)) {
- send_cancel_request(default_agent, req);
+ send_cancel_request(agent, req);
agent->pending_requests = slist_remove(agent->pending_requests, req);
}
}