core: properly initialize stable dhcp client-id

Fixes: 62a7863979
This commit is contained in:
Beniamino Galvani 2018-04-01 16:28:47 +02:00
parent 56e79a4e07
commit eb8257dea5

View file

@ -6591,7 +6591,7 @@ dhcp4_get_client_id (NMDevice *self, NMConnection *connection)
client_id_buf = g_malloc (1 + 15);
client_id_buf[0] = 0;
memcpy (&client_id_buf[0], buf, 15);
memcpy (&client_id_buf[1], buf, 15);
return g_bytes_new_take (client_id_buf, 1 + 15);
}