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:
Beniamino Galvani
2025-07-07 09:31:15 +02:00
parent fdb8f07c44
commit b45d5f41dd

View File

@@ -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;