mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 06:50:10 +01:00
dispatcher: fix constructing the IPv4 nameserver variable
Use the value of the address instead of its pointer. Fixes:c68e148b02('core: extend NML3ConfigData:nameserver to track DNS as string') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1217 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1539 (cherry picked from commita839395e30)
This commit is contained in:
parent
0e4e3e5d74
commit
a2026a8b24
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ dump_ip_to_props(const NML3ConfigData *l3cd, int addr_family, GVariantBuilder *b
|
|||
continue;
|
||||
|
||||
if (IS_IPv4)
|
||||
g_variant_builder_add(&int_builder, "u", &a);
|
||||
g_variant_builder_add(&int_builder, "u", a.addr4);
|
||||
else
|
||||
g_variant_builder_add(&int_builder, "@ay", nm_g_variant_new_ay_in6addr(&a.addr6));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue