summaryrefslogtreecommitdiffstats
path: root/src/agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/agent.c b/src/agent.c
index 44ce3b11..e8f9c651 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -371,7 +371,8 @@ static void pincode_reply(DBusPendingCall *call, void *user_data)
bdaddr_t sba;
size_t len;
char *pin;
- const gchar *source = adapter_get_address(adapter);
+
+ adapter_get_address(adapter, &sba);
/* steal_reply will always return non-NULL since the callback
* is only called after a reply has been received */
@@ -416,8 +417,6 @@ static void pincode_reply(DBusPendingCall *call, void *user_data)
goto done;
}
- str2ba(source, &sba);
-
set_pin_length(&sba, len);
cb(agent, NULL, pin, req->user_data);