3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-27 03:19:24 +01:00

wiphy: Fix crash in device address property getter

Address is being returned as a string, even though it is actually an
array of 6 uint8_t elements
This commit is contained in:
Denis Kenzior 2016-06-06 18:23:53 -05:00
parent 92c943998f
commit 64c388fe76

View File

@ -467,9 +467,11 @@ static bool device_property_get_address(struct l_dbus *dbus,
void *user_data) void *user_data)
{ {
struct device *device = user_data; struct device *device = user_data;
const char *str;
str = util_address_to_string(netdev_get_address(device->netdev));
l_dbus_message_builder_append_basic(builder, 's', str);
l_dbus_message_builder_append_basic(builder, 's',
netdev_get_address(device->netdev));
return true; return true;
} }