libnm: fix broken assertion in _permissions_user_allowed()

Fixes: b2b2823c53 ('core: avoid getpwuid() unless necessary in permission check')
This commit is contained in:
Thomas Haller
2023-11-15 10:38:18 +01:00
parent 36629ae710
commit cce8106a37

View File

@@ -362,8 +362,7 @@ _permissions_user_allowed(NMSettingConnection *setting, const char *uname, gulon
NMSettingConnectionPrivate *priv;
guint i;
g_return_val_if_fail(NM_IS_SETTING_CONNECTION(setting), FALSE);
g_return_val_if_fail(uname != NULL, FALSE);
nm_assert(NM_IS_SETTING_CONNECTION(setting));
priv = NM_SETTING_CONNECTION_GET_PRIVATE(setting);