summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-06-24 14:14:26 +0200
committerThomas Haller <thaller@redhat.com>2018-06-24 14:16:13 +0200
commitb32c03c879603ad6a8d53b083a932a9d525c0253 (patch)
treee9fc97b8611ff0ae594034b3efdfd4ff725b1818
parentf532ceb883b7a354ae43964330a0c39a6d1fb5eb (diff)
downloadNetworkManager-b32c03c879603ad6a8d53b083a932a9d525c0253.tar.gz
clients: fix using hints for 802-1x secret request
https://github.com/NetworkManager/NetworkManager/pull/139 Fixes: 1a6e53808db8bb8e75317fd5feacd74a9a98860f (cherry picked from commit 55598d8104f6712f5144d4513325215aea1e162e)
-rw-r--r--clients/common/nm-secret-agent-simple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c
index 1468f0f335..0856b51ffb 100644
--- a/clients/common/nm-secret-agent-simple.c
+++ b/clients/common/nm-secret-agent-simple.c
@@ -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),