OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b320317
)
android: Fix sending remote device property if name is not present
author
Szymon Janc
<szymon.janc@tieto.com>
Sat, 16 Nov 2013 14:09:44 +0000
(15:09 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Sat, 16 Nov 2013 18:21:59 +0000
(20:21 +0200)
This fix missing bdaddr to string convertion if name was NULL. This
was resulting in using undefined dst value.
android/bluetooth.c
patch
|
blob
|
history
diff --git
a/android/bluetooth.c
b/android/bluetooth.c
index
83f20e2
..
4439cc6
100644
(file)
--- a/
android/bluetooth.c
+++ b/
android/bluetooth.c
@@
-589,8
+589,10
@@
static void send_remote_device_name_prop(const bdaddr_t *bdaddr)
/* Use cached name or bdaddr string */
name = get_device_name(bdaddr);
- if (!name)
+ if (!name) {
+ ba2str(bdaddr, dst);
name = dst;
+ }
ev_len = BASELEN_REMOTE_DEV_PROP + strlen(name);
ev = g_malloc0(ev_len);