clients: fix using hints for 802-1x secret request

https://github.com/NetworkManager/NetworkManager/pull/139

Fixes: 1a6e53808d
This commit is contained in:
Thomas Haller 2018-06-24 14:14:26 +02:00
parent 2576e3a8e8
commit 55598d8104

View file

@ -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),