diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2023-02-16 23:39:54 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2023-02-20 09:36:30 +0100 |
commit | a839395e302989d1d5557d206c7df1b54c9e8767 (patch) | |
tree | d13e20f3f70973af3d9ce30f9332529aec6a41ae | |
parent | 33d6f4f3a281ccff22eec5b886b08d1939cdd445 (diff) | |
download | NetworkManager-a839395e302989d1d5557d206c7df1b54c9e8767.tar.gz |
dispatcher: fix constructing the IPv4 nameserver variable
Use the value of the address instead of its pointer.
Fixes: c68e148b027e ('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
-rw-r--r-- | src/core/nm-dispatcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nm-dispatcher.c b/src/core/nm-dispatcher.c index 01a6382609..cdc07dd60e 100644 --- a/src/core/nm-dispatcher.c +++ b/src/core/nm-dispatcher.c @@ -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)); } |