settings: when checking for system-owned secrets ignore NOT_SAVED

Previously a secret marked NOT_SAVED or NOT_REQUIRED would be
treated as a system secret when checking returned secrets.  That's
incorrect since unsaved or not required secrets aren't stored
by system settings.
This commit is contained in:
Dan Williams 2011-05-19 13:14:51 -05:00
parent 05a959d1d6
commit e083cd5c63

View file

@ -430,7 +430,7 @@ has_system_owned_secrets (GHashTableIter *iter,
{
gboolean *has_system_owned = user_data;
if (!(flags & NM_SETTING_SECRET_FLAG_AGENT_OWNED)) {
if (flags == NM_SETTING_SECRET_FLAG_NONE) {
*has_system_owned = TRUE;
return FALSE;
}