libnm-util: fix setting property iteration when getting secret flags

g_object_class_find_property() needs the object's class, not the
object itself.
This commit is contained in:
Dan Williams
2011-02-02 11:58:19 -06:00
parent f9147ec369
commit fb033b0f05

View File

@@ -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,