diff options
author | Louis Whitburn <whitburnlg@gmail.com> | 2020-03-10 10:19:34 +1300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-03-09 22:25:33 -0500 |
commit | eb7845ec2949a54fce93906868065d915a4709f7 (patch) | |
tree | bc7bf54ab58b692b6a8834224017a355d9494d67 | |
parent | 9dccec856635c4ebc5cde66fb278433e1c988645 (diff) | |
download | iwd-eb7845ec2949a54fce93906868065d915a4709f7.tar.gz |
eap-tls-common: Don't fail with omitted EAP-TLS-CACert
iwd would fail to connect using EAP-TLS when no CA certificate was
provided as it checked for successful loading of the CA certificate
instead of the client certificate when attempting to load the client
certificate.
-rw-r--r-- | src/eap-tls-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap-tls-common.c b/src/eap-tls-common.c index d62d7ca58..a61259692 100644 --- a/src/eap-tls-common.c +++ b/src/eap-tls-common.c @@ -1138,7 +1138,7 @@ bool eap_tls_common_settings_load(struct eap_state *eap, if (value) { eap_tls->client_cert = eap_tls_load_client_cert(settings, value); - if (!eap_tls->ca_cert) { + if (!eap_tls->client_cert) { l_error("Could not load ClientCert %s", value); goto load_error; } |