mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-19 02:00:45 +02:00
libnm-util: check all valid permissions property types
This commit is contained in:
parent
b93cad0149
commit
8f699a77f2
1 changed files with 2 additions and 1 deletions
|
|
@ -471,7 +471,8 @@ validate_permissions_type (GHashTable *hash, GError **error)
|
|||
if (s_con) {
|
||||
permissions = g_hash_table_lookup (s_con, NM_SETTING_CONNECTION_PERMISSIONS);
|
||||
if (permissions) {
|
||||
if (!G_VALUE_HOLDS (permissions, DBUS_TYPE_G_LIST_OF_STRING)) {
|
||||
if ( !G_VALUE_HOLDS (permissions, G_TYPE_STRV)
|
||||
&& !G_VALUE_HOLDS (permissions, DBUS_TYPE_G_LIST_OF_STRING)) {
|
||||
g_set_error_literal (error,
|
||||
NM_SETTING_ERROR,
|
||||
NM_SETTING_ERROR_PROPERTY_TYPE_MISMATCH,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue