mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 17:20:11 +01:00
modem: fix unalined access in stage3_ip_config_start()
Fixes: 58287cbcc0 ('core: rework IP configuration in NetworkManager using layer 3 configuration')
This commit is contained in:
parent
5d86db699b
commit
21887f88fa
1 changed files with 2 additions and 2 deletions
|
|
@ -1122,8 +1122,8 @@ stage3_ip_config_start(NMModem *modem, int addr_family, NMModemIPMethod ip_metho
|
|||
address.plen = mm_bearer_ip_config_get_prefix(self->_priv.ipv6_config);
|
||||
if (address.plen <= 128) {
|
||||
if (IN6_IS_ADDR_LINKLOCAL(&address.address)) {
|
||||
iid_data.id = ((guint64 *) (&address.address.s6_addr))[1];
|
||||
iid = &iid_data;
|
||||
nm_utils_ipv6_interface_identifier_get_from_addr(&iid_data, &address.address);
|
||||
iid = &iid_data;
|
||||
} else
|
||||
do_auto = FALSE;
|
||||
nm_l3_config_data_add_address_6(l3cd, &address);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue