mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 05:40:15 +01:00
clients: fix using hints for 802-1x secret request
https://github.com/NetworkManager/NetworkManager/pull/139
Fixes: 1a6e53808d
This commit is contained in:
parent
2576e3a8e8
commit
55598d8104
1 changed files with 2 additions and 1 deletions
|
|
@ -218,8 +218,9 @@ add_8021x_secrets (NMSecretAgentSimpleRequest *request,
|
|||
NMSecretAgentSimpleSecret *secret;
|
||||
|
||||
/* If hints are given, then always ask for what the hints require */
|
||||
if (request->hints) {
|
||||
if (request->hints && request->hints[0]) {
|
||||
char **iter;
|
||||
|
||||
for (iter = request->hints; *iter; iter++) {
|
||||
secret = nm_secret_agent_simple_secret_new (NM_SECRET_AGENT_SECRET_TYPE_SECRET,
|
||||
_(*iter),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue