File nm-treat-not-saved-secrets-just-like-agent-owned-when-cl.diff of Package NetworkManager.4192

Index: NetworkManager-1.0.10/src/settings/nm-settings-connection.c
===================================================================
--- NetworkManager-1.0.10.orig/src/settings/nm-settings-connection.c
+++ NetworkManager-1.0.10/src/settings/nm-settings-connection.c
@@ -732,7 +732,7 @@ clear_nonagent_secrets (GHashTableIter *
                         NMSettingSecretFlags flags,
                         gpointer user_data)
 {
-	if (flags != NM_SETTING_SECRET_FLAG_AGENT_OWNED)
+	if (!(flags & (NM_SETTING_SECRET_FLAG_AGENT_OWNED | NM_SETTING_SECRET_FLAG_NOT_SAVED)))
 		g_hash_table_iter_remove (iter);
 	return TRUE;
 }