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 c0b5fbbd..47429c08 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -685,7 +685,7 @@ static void auth_agent_req_reply(DBusPendingCall *call, void *data)
dbus_error_init(&err);
if (dbus_set_error_from_message(&err, reply)) {
- if (strcmp(err.name, DBUS_ERROR_NO_REPLY) == 0)
+ if (dbus_error_has_name(&err, DBUS_ERROR_NO_REPLY))
auth_agent_call_cancel(req);
error("Authorization agent replied with an error: %s, %s",
err.name, err.message);