summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-01-15 18:39:06 +0100
committerThomas Haller <thaller@redhat.com>2015-01-15 18:39:06 +0100
commite1e583d016d471d9bd51b4bfa5e8e7822000da61 (patch)
tree496424e2e4f43c18d2f963a7f68a675243cbaac7
parent9df9b6f27597e6bbc33de58ff7a51ad2cb56fe68 (diff)
downloadNetworkManager-danw/validate-proptype-rh1182567.tar.gz
fixup! libnm-core: validate property types from D-Bus (rh #1182567)danw/validate-proptype-rh1182567
-rw-r--r--libnm-core/nm-setting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-setting.c b/libnm-core/nm-setting.c
index d64fdcc337..a493d9848e 100644
--- a/libnm-core/nm-setting.c
+++ b/libnm-core/nm-setting.c
@@ -665,7 +665,7 @@ set_property_from_dbus (const NMSettingProperty *property,
GVariant *src_value,
GValue *dst_value)
{
- g_return_if_fail (property->param_spec != NULL);
+ g_return_val_if_fail (property->param_spec != NULL, FALSE);
if (property->from_dbus) {
if (!g_variant_type_equal (g_variant_get_type (src_value), property->dbus_type))