From 82697358e348274ebdbf42bbc526e753c1ae36e5 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 18 Feb 2020 09:52:11 +0100 Subject: [PATCH] device: fix handling of DHCP grace period 'grace_pending' was never initialized. Fixes: 0c52c18b5632 ('device: unify handling of grace-period for DHCPv4 and DHCPv6 (2)') --- src/devices/nm-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 28b7107752..dbda4d8501 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7956,6 +7956,8 @@ dhcp_grace_period_start (NMDevice *self, int addr_family) self); } + priv->dhcp_data_x[IS_IPv4].grace_pending = TRUE; + return TRUE; } static void