diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-04-10 16:02:31 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-04-11 13:50:09 +0200 |
commit | a94ccc9acc47f08943f017a5040abeb05afee183 (patch) | |
tree | e455b34e8d4a574e732a2f56c2d916e4272d923c /clients | |
parent | c210ad9d269fb285e09ef155622dc16f4baa2b4c (diff) | |
download | NetworkManager-a94ccc9acc47f08943f017a5040abeb05afee183.tar.gz |
clients: fix assertion when requesting gsm pin secret
[root@gsm-r5s4-01 ~]# nmcli connection up id gsm
**
libnmc:ERROR:clients/common/nm-secret-agent-simple.c:171:_secret_real_new_plain: assertion failed: ((secret_type == NM_SECRET_AGENT_SECRET_TYPE_SECRET) == nm_setting_get_secret_flags (setting, property, ((void *)0), ((void *)0)))
Aborted (core dumped)
The pin is a secret property.
https://bugzilla.redhat.com/show_bug.cgi?id=1698495
Diffstat (limited to 'clients')
-rw-r--r-- | clients/common/nm-secret-agent-simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c index ca486f4f28..b863c49a1c 100644 --- a/clients/common/nm-secret-agent-simple.c +++ b/clients/common/nm-secret-agent-simple.c @@ -902,7 +902,7 @@ request_secrets_from_ui (RequestData *request) title = _("PIN code required"); msg = g_strdup (_("PIN code is needed for the mobile broadband device")); - secret = _secret_real_new_plain (NM_SECRET_AGENT_SECRET_TYPE_PROPERTY, + secret = _secret_real_new_plain (NM_SECRET_AGENT_SECRET_TYPE_SECRET, _("PIN"), NM_SETTING (s_gsm), NM_SETTING_GSM_PIN); |