Commit eee2eda4 authored by Beniamino Galvani's avatar Beniamino Galvani

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.
(cherry picked from commit a94ccc9a)
parent ce6b7cc8
Pipeline #29937 failed with stage
in 30 minutes and 5 seconds
......@@ -889,7 +889,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,
NM_SETTING (s_gsm),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment