summaryrefslogtreecommitdiffstats
path: root/network/server.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2008-09-09 15:18:27 -0300
committerVinicius Costa Gomes <vinicius.gomes@openbossa.org>2008-09-09 19:47:14 -0300
commitc0296a9dde463495975140e7fb7f689a347807d6 (patch)
tree8db2fe54052fa2566d0ce365842e96943c104b35 /network/server.c
parent8b783303433f7c25c2a888034a6da369a7e9a731 (diff)
Cancels the pending request from agent side when receiving a NoReply
Diffstat (limited to 'network/server.c')
-rw-r--r--network/server.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/network/server.c b/network/server.c
index e283a994..3230fde6 100644
--- a/network/server.c
+++ b/network/server.c
@@ -338,7 +338,6 @@ static int server_connadd(struct network_server *ns, int nsk,
static void req_auth_cb(DBusError *derr, void *user_data)
{
struct network_server *ns = user_data;
- struct network_adapter *na = ns->na;
uint16_t val;
if (!setup) {
@@ -348,11 +347,7 @@ static void req_auth_cb(DBusError *derr, void *user_data)
if (derr) {
error("Access denied: %s", derr->message);
- if (dbus_error_has_name(derr, DBUS_ERROR_NO_REPLY)) {
- bdaddr_t dst;
- str2ba(setup->address, &dst);
- btd_cancel_authorization(&na->src, &dst);
- }
+
val = BNEP_CONN_NOT_ALLOWED;
goto done;
}