return (const char *) g_hash_table_lookup (NM_SETTING_VPN_GET_PRIVATE (setting)->secrets, key);
}
It's return TRUE in one case, if setting->secrets has a key. NULL we can get in two cases, if 'settings' has a wrong type and if there is no key in 'settings -> secrets'. You say that setting already verified, than something wrong with settings -> secrets.
May be something wrong with rights when reading secrets?
I look at nm_setting_ vpn_get_ secret.
nm_setting_ vpn_get_ secret (NMSettingVPN *setting, const char *key) val_if_ fail (NM_IS_SETTING_VPN (setting), NULL);
{
g_return_
return (const char *) g_hash_table_lookup (NM_SETTING_ VPN_GET_ PRIVATE (setting)->secrets, key);
}
It's return TRUE in one case, if setting->secrets has a key. NULL we can get in two cases, if 'settings' has a wrong type and if there is no key in 'settings -> secrets'. You say that setting already verified, than something wrong with settings -> secrets.
May be something wrong with rights when reading secrets?
Sorry for bad english.