summaryrefslogtreecommitdiff
path: root/src/nm-ip6-config.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-09-10 13:29:02 +0200
committerThomas Haller <thaller@redhat.com>2015-09-10 13:31:36 +0200
commit04c4128356bf85bab2baadda56dfdcec1ccd8885 (patch)
treec4db1f5b5a94cd094c8ff3f0081fbaf309d93b92 /src/nm-ip6-config.c
parent12746da03953c6e4caa06d06de8b96acf5bd66b5 (diff)
downloadNetworkManager-04c4128356bf85bab2baadda56dfdcec1ccd8885.tar.gz
core: fix D-Bus value for NM_IP6_CONFIG_ROUTES
Caused NMIP6Config:Routes property to have bogus values and leaked the variants. Fixes: 6c8f860820a9d7a29e629b8d3d7f97145d385d33
Diffstat (limited to 'src/nm-ip6-config.c')
-rw-r--r--src/nm-ip6-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c
index 4236e24cbe..d1ffbaa1fb 100644
--- a/src/nm-ip6-config.c
+++ b/src/nm-ip6-config.c
@@ -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));