3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-19 10:02:33 +01:00

hwsim: Add terminating 0 byte to attribute

Similar to 21a9b064d3 also include the NUL
byte in the name attribute when creating a radio through DBus call.
This commit is contained in:
Andrew Zaborowski 2017-03-14 00:51:18 +01:00 committed by Denis Kenzior
parent ea9edc1f99
commit 10d96e5c19

View File

@ -1381,7 +1381,7 @@ static struct l_dbus_message *radio_manager_create(struct l_dbus *dbus,
if (name[0])
l_genl_msg_append_attr(new_msg, HWSIM_ATTR_RADIO_NAME,
strlen(name), name);
strlen(name) + 1, name);
if (p2p)
l_genl_msg_append_attr(new_msg, HWSIM_ATTR_SUPPORT_P2P_DEVICE,