From e0f37dce453866ffaea48b982326666afbd64dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Tue, 30 Jul 2013 16:23:55 +0200 Subject: [PATCH] dhcp: fix IPv6 address timestamp setting --- src/dhcp-manager/nm-dhcp-client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c index 6b3f5cc1e1..c684850cf0 100644 --- a/src/dhcp-manager/nm-dhcp-client.c +++ b/src/dhcp-manager/nm-dhcp-client.c @@ -1152,13 +1152,12 @@ ip4_options_to_config (NMDHCPClient *self) g_return_val_if_fail (NM_IS_DHCP_CLIENT (self), NULL); - address.timestamp = get_time (); - priv = NM_DHCP_CLIENT_GET_PRIVATE (self); g_return_val_if_fail (priv->options != NULL, NULL); ip4_config = nm_ip4_config_new (); memset (&address, 0, sizeof (address)); + address.timestamp = get_time (); str = g_hash_table_lookup (priv->options, "new_ip_address"); if (str && (inet_pton (AF_INET, str, &tmp_addr) > 0)) {