mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 06:40:18 +01:00
core: fix D-Bus value for NM_IP6_CONFIG_ROUTES
Caused NMIP6Config:Routes property to have bogus values
and leaked the variants.
Fixes: 6c8f860820
This commit is contained in:
parent
12746da039
commit
04c4128356
1 changed files with 2 additions and 2 deletions
|
|
@ -2019,10 +2019,10 @@ get_property (GObject *object, guint prop_id,
|
|||
g_variant_builder_add (&array_builder, "(@ayu@ayu)",
|
||||
g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
|
||||
&route->network, 16, 1),
|
||||
g_variant_new_uint32 (route->plen),
|
||||
(guint32) route->plen,
|
||||
g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE,
|
||||
&route->gateway, 16, 1),
|
||||
g_variant_new_uint32 (route->metric));
|
||||
(guint32) route->metric);
|
||||
}
|
||||
|
||||
g_value_take_variant (value, g_variant_builder_end (&array_builder));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue