From fb033b0f05fb9df1a61b22a5a3a54235e8b62fac Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 2 Feb 2011 11:58:19 -0600 Subject: [PATCH] libnm-util: fix setting property iteration when getting secret flags g_object_class_find_property() needs the object's class, not the object itself. --- libnm-util/nm-setting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm-util/nm-setting.c b/libnm-util/nm-setting.c index 5e1614c91..ea02275f9 100644 --- a/libnm-util/nm-setting.c +++ b/libnm-util/nm-setting.c @@ -575,7 +575,7 @@ is_secret_prop (NMSetting *setting, const char *secret_name, GError **error) { GParamSpec *pspec; - pspec = g_object_class_find_property (G_OBJECT_CLASS (setting), secret_name); + pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (setting), secret_name); if (!pspec) { g_set_error (error, NM_SETTING_ERROR,