summaryrefslogtreecommitdiffstats
path: root/network/server.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-03-29 19:14:31 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-03-29 19:14:31 +0000
commit6c3a14c15dd13df90bdeff09628a2e434cb23d96 (patch)
treea2d3f0d717038c0b50010360aa332867b033b6a9 /network/server.c
parent675f1f3b5e07f09bca4761e7b18f3bca6fa56ddd (diff)
network: only send cancel authorization if the error name is NoReply
Diffstat (limited to 'network/server.c')
-rw-r--r--network/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/network/server.c b/network/server.c
index f180401e..1e1bede0 100644
--- a/network/server.c
+++ b/network/server.c
@@ -267,9 +267,12 @@ static void authorization_callback(DBusPendingCall *pcall, void *data)
dbus_error_init(&derr);
if (dbus_set_error_from_message(&derr, reply)) {
error("Access denied: %s", derr.message);
+ if (dbus_error_has_name(&derr, DBUS_ERROR_NO_REPLY)) {
+ debug("Canceling authorization request");
+ cancel_authorization(ns);
+ }
response = BNEP_CONN_NOT_ALLOWED;
dbus_error_free(&derr);
- cancel_authorization(ns);
goto failed;
}