dhcp: fix IPv6 address prefixes (rh #1013583)

53e55aab36 mistakenly moved the address
prefix without moving the memset() to initialize the address.  Make
sure the address is initialized before trying to do anything with it.
This commit is contained in:
Dan Williams 2013-10-01 15:48:25 -05:00
parent 1b773f4e6e
commit d3aae79e5c

View file

@ -1348,6 +1348,7 @@ ip6_options_to_config (NMDHCPClient *self)
g_return_val_if_fail (NM_IS_DHCP_CLIENT (self), NULL);
memset (&address, 0, sizeof (address));
address.plen = 128;
address.timestamp = get_time ();
@ -1370,7 +1371,6 @@ ip6_options_to_config (NMDHCPClient *self)
goto error;
}
memset (&address, 0, sizeof (address));
address.address = tmp_addr;
nm_log_info (LOGD_DHCP6, " address %s", str);