summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/dbus-security.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index 336f2aa9..a4ca0dbd 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -448,8 +448,6 @@ static void passkey_agent_reply(DBusPendingCall *call, void *user_data)
dbus_error_init(&err);
if (dbus_set_error_from_message(&err, message)) {
- error("Passkey agent replied with an error: %s, %s",
- err.name, err.message);
if (!req->old_if && !strcmp(err.name, DBUS_ERROR_UNKNOWN_METHOD)) {
debug("New Request API failed, trying old one");
req->old_if = 1;
@@ -468,6 +466,9 @@ static void passkey_agent_reply(DBusPendingCall *call, void *user_data)
return;
}
+ error("Passkey agent replied with an error: %s, %s",
+ err.name, err.message);
+
dbus_error_free(&err);
goto fail;
}