3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

eap-tls: Use the right variable in settings check

This commit is contained in:
Andrew Zaborowski 2021-01-27 15:02:25 +01:00 committed by Denis Kenzior
parent a9c32d85ea
commit 6f62056fcf

View File

@ -174,7 +174,7 @@ static int eap_tls_settings_check(struct l_settings *settings,
* Check whether the combination of settings that are present/missing
* makes sense before validating each setting.
*/
if (bundle_value && (priv_key_value || client_cert)) {
if (bundle_value && (priv_key_value || client_cert_value)) {
l_error("Either %s or %s/%s can be used, not both",
bundle_setting, priv_key_setting, client_cert_setting);
ret = -EEXIST;
@ -184,7 +184,7 @@ static int eap_tls_settings_check(struct l_settings *settings,
priv_key_setting, client_cert_setting);
ret = -ENOENT;
goto done;
} else if (!priv_key_value && client_cert) {
} else if (!priv_key_value && client_cert_value) {
l_error("%s present but no client private key (%s)",
client_cert_setting, priv_key_setting);
ret = -ENOENT;