mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 17:30:09 +01:00
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:
parent
1b773f4e6e
commit
d3aae79e5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue