summaryrefslogtreecommitdiffstats
path: root/hcid/security.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-08-19 00:50:50 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-08-19 00:50:50 +0000
commit9f1c935d4e9a36ad0af6afb0b0e9893397698efa (patch)
tree12b14b3496bf5d1147f971dc110430e33802c990 /hcid/security.c
parent5c2f4ca97418ad12a764790a3b3d4023c987dd7f (diff)
Do byte order magic when checking connection handle for auth complete events
Diffstat (limited to 'hcid/security.c')
-rw-r--r--hcid/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/security.c b/hcid/security.c
index 43169565..32172e63 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -614,7 +614,7 @@ static inline void auth_complete(int dev, bdaddr_t *sba, void *ptr)
evt_auth_complete *evt = ptr;
bdaddr_t dba;
- if (get_bdaddr(dev, sba, evt->handle, &dba) < 0)
+ if (get_bdaddr(dev, sba, btohs(evt->handle), &dba) < 0)
return;
if (evt->status)