summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-20 18:46:28 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-20 18:46:28 +0000
commitbeb22838a0859410bb62f1c6a1fde1a4a13cab8c (patch)
tree98ccfb350b2cda4df4604a652c049456430d3de4
parentc1bf1d2d09d7673d021b850b1f225a003b7eff4b (diff)
Send a Cancel msg to the Auth agent when NoReply(timeout) msg arrives for Authorize request
-rw-r--r--hcid/dbus-security.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index 643799cc..0fe55dd2 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -659,6 +659,8 @@ 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)
+ auth_agent_call_cancel(req);
error("Authorization agent replied with an error: %s, %s",
err.name, err.message);
dbus_error_free(&err);