summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2020-02-18 09:52:11 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2020-02-18 09:59:32 +0100
commit82697358e348274ebdbf42bbc526e753c1ae36e5 (patch)
tree4236adaa300dd0d5d75028ef280d268319522930
parente24fd884941d40209bf6c159be6a4cb61812572a (diff)
downloadNetworkManager-82697358e348274ebdbf42bbc526e753c1ae36e5.tar.gz
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)')
-rw-r--r--src/devices/nm-device.c2
1 files changed, 2 insertions, 0 deletions
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