diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-02-20 10:17:27 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-02-25 15:17:17 +0100 |
commit | 3eaf2b86be2399d5050124c45a27ab33ffdf6525 (patch) | |
tree | e32d77db004e39684ffdff397136066c857000c3 | |
parent | 3bcabfb4f73cc35f2a9b1fc215a4ecbcab3d098b (diff) | |
download | network-manager-applet-3eaf2b86be2399d5050124c45a27ab33ffdf6525.tar.gz |
wireless-security: 'unknown' method requires non-empty secrets
secrets_hints can be a empty array when there are no hints. See also
similar commit [1] for nmcli secret agent.
[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/commit/b32c03c879603ad6a8d53b083a932a9d525c0253
Fixes: 0173934c831fac41d1203affd1fdf3d7fffeb22e
https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/39
-rw-r--r-- | src/wireless-security/wireless-security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireless-security/wireless-security.c b/src/wireless-security/wireless-security.c index 257675c1..d1b69c22 100644 --- a/src/wireless-security/wireless-security.c +++ b/src/wireless-security/wireless-security.c @@ -499,7 +499,7 @@ ws_802_1x_auth_combo_init (WirelessSecurity *sec, active = item; item++; - if (secrets_hints) { + if (secrets_hints && secrets_hints[0]) { EAPMethodSimple *em_hints; em_hints = eap_method_simple_new (sec, connection, EAP_METHOD_SIMPLE_TYPE_UNKNOWN, |