This fix missing bdaddr to string convertion if name was NULL. This was resulting in using undefined dst value. --- android/bluetooth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 83f20e2..4439cc6 100644 --- 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); -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html