summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-security.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-10-21 21:51:20 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-10-21 21:51:20 +0000
commit291dc776f06b81718eb8f7755a2867d90a63426c (patch)
tree0163a623e19532a19e33aae4ec28d807b1f7ee0a /hcid/dbus-security.c
parenta15d638046850d3e2dea890de562ff8e17918141 (diff)
Log passkey agent error only once
Diffstat (limited to 'hcid/dbus-security.c')
-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;
}