mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 04:00:32 +01:00
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:
parent
05a959d1d6
commit
e083cd5c63
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue