summaryrefslogtreecommitdiff
path: root/src/dhcp-manager
diff options
context:
space:
mode:
authorPavel Šimerda <psimerda@redhat.com>2013-07-30 16:23:55 +0200
committerPavel Šimerda <psimerda@redhat.com>2013-07-30 16:36:47 +0200
commite0f37dce453866ffaea48b982326666afbd64dd8 (patch)
treeb29201d89fe451e2a6296e754748a995d33ca6dc /src/dhcp-manager
parente59949c7cf70febbd1020551e4c4f787a6efa846 (diff)
downloadNetworkManager-e0f37dce453866ffaea48b982326666afbd64dd8.tar.gz
dhcp: fix IPv6 address timestamp setting
Diffstat (limited to 'src/dhcp-manager')
-rw-r--r--src/dhcp-manager/nm-dhcp-client.c3
1 files changed, 1 insertions, 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)) {