summaryrefslogtreecommitdiffstats
path: root/hcid/agent.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-07-22 23:45:33 +0530
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:48:48 -0300
commitdebc2efd75e3211934c2f4262140e7c28f574945 (patch)
tree03a5549ab9f04e1de34edc52fcd2dbe1afff6619 /hcid/agent.c
parentee86cf6916b26c167de8f0444778926148726fdf (diff)
Adding adapter_get_address.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'hcid/agent.c')
-rw-r--r--hcid/agent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hcid/agent.c b/hcid/agent.c
index 3a46043c..3cae00a5 100644
--- a/hcid/agent.c
+++ b/hcid/agent.c
@@ -386,6 +386,7 @@ static void pincode_reply(DBusPendingCall *call, void *user_data)
bdaddr_t sba;
size_t len;
char *pin;
+ const gchar *source = adapter_get_address(adapter);
/* steal_reply will always return non-NULL since the callback
* is only called after a reply has been received */
@@ -423,7 +424,7 @@ static void pincode_reply(DBusPendingCall *call, void *user_data)
goto done;
}
- str2ba(adapter->address, &sba);
+ str2ba(source, &sba);
set_pin_length(&sba, len);