dhcp: fix IPv6 address timestamp setting

This commit is contained in:
Pavel Šimerda 2013-07-30 16:23:55 +02:00
parent e59949c7cf
commit e0f37dce45

View file

@ -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)) {