mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 11:30:15 +01:00
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:
parent
f9147ec369
commit
fb033b0f05
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue