summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-04-01 16:28:47 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2018-04-01 16:28:47 +0200
commiteb8257dea5802a004af9cccacb30af98440e2172 (patch)
tree46f39dccf7105ba5a814dbaaaf3b7585eb8397d4
parent56e79a4e07e70f7786aa5bcfb6d2aedf082c1cd6 (diff)
downloadNetworkManager-eb8257dea5802a004af9cccacb30af98440e2172.tar.gz
core: properly initialize stable dhcp client-id
Fixes: 62a78639797244ef49f439ba2d8bd3332d31585b
-rw-r--r--src/devices/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index d6ac3f9df5..7d4b482ef2 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -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);
}