mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 09:20:04 +01:00
platform: fix harmless typo
The function should modify the "ip6_address" member of the union. In practice, it doesn't matter because the ifindex is the first member of both "ip4_address" and "ip6_address".
This commit is contained in:
parent
fdb8f07c44
commit
b45d5f41dd
1 changed files with 1 additions and 1 deletions
|
|
@ -893,7 +893,7 @@ const NMPObject *
|
||||||
nmp_object_stackinit_id_ip6_address(NMPObject *obj, int ifindex, const struct in6_addr *address)
|
nmp_object_stackinit_id_ip6_address(NMPObject *obj, int ifindex, const struct in6_addr *address)
|
||||||
{
|
{
|
||||||
_nmp_object_stackinit_from_type(obj, NMP_OBJECT_TYPE_IP6_ADDRESS);
|
_nmp_object_stackinit_from_type(obj, NMP_OBJECT_TYPE_IP6_ADDRESS);
|
||||||
obj->ip4_address.ifindex = ifindex;
|
obj->ip6_address.ifindex = ifindex;
|
||||||
if (address)
|
if (address)
|
||||||
obj->ip6_address.address = *address;
|
obj->ip6_address.address = *address;
|
||||||
return obj;
|
return obj;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue