diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 2f2de0a96..57109525a 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -6863,7 +6863,9 @@ static gboolean dhcp4_grace_period_expired (gpointer user_data) { NMDevice *self = user_data; + NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); + priv->dhcp4.grace_id = 0; _LOGI (LOGD_DHCP4, "DHCPv4: grace period expired"); nm_device_ip_method_failed (self, AF_INET, @@ -7594,7 +7596,9 @@ static gboolean dhcp6_grace_period_expired (gpointer user_data) { NMDevice *self = user_data; + NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); + priv->dhcp6.grace_id = 0; _LOGI (LOGD_DHCP6, "DHCPv6: grace period expired"); nm_device_ip_method_failed (self, AF_INET6,