From eb8257dea5802a004af9cccacb30af98440e2172 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Sun, 1 Apr 2018 16:28:47 +0200 Subject: [PATCH] core: properly initialize stable dhcp client-id Fixes: 62a78639797244ef49f439ba2d8bd3332d31585b --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }