diff options
author | Dan Williams <dcbw@redhat.com> | 2011-02-07 19:16:54 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-02-07 19:16:54 -0600 |
commit | bad3377131c01907345a16de8f78c1fb45ed00e1 (patch) | |
tree | 4d9c47e145bdeab07ce1302e342f88e92628fd77 /libnm-util/nm-setting-gsm.c | |
parent | 99766efbdc255fa9e9339f96692b8605c12fb891 (diff) | |
download | NetworkManager-bad3377131c01907345a16de8f78c1fb45ed00e1.tar.gz |
libnm-util: update CDMA, GSM, and PPPoE settings for NOT_REQUIRED secrets
Diffstat (limited to 'libnm-util/nm-setting-gsm.c')
-rw-r--r-- | libnm-util/nm-setting-gsm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libnm-util/nm-setting-gsm.c b/libnm-util/nm-setting-gsm.c index 55369dd7f0..aeac116448 100644 --- a/libnm-util/nm-setting-gsm.c +++ b/libnm-util/nm-setting-gsm.c @@ -327,8 +327,10 @@ need_secrets (NMSetting *setting) return NULL; if (priv->username) { - secrets = g_ptr_array_sized_new (1); - g_ptr_array_add (secrets, NM_SETTING_GSM_PASSWORD); + if (!(priv->password_flags & NM_SETTING_SECRET_FLAG_NOT_REQUIRED)) { + secrets = g_ptr_array_sized_new (1); + g_ptr_array_add (secrets, NM_SETTING_GSM_PASSWORD); + } } return secrets; |