mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
eap-ttls: Check Phase 2 method name is not NULL
This commit is contained in:
parent
8dfb8e9207
commit
451a7e9b52
@ -1040,6 +1040,10 @@ static int eap_ttls_settings_check(struct l_settings *settings,
|
||||
prefix);
|
||||
phase2_method_name = l_settings_get_value(settings, "Security",
|
||||
setting_key);
|
||||
if (!phase2_method_name) {
|
||||
l_error("Setting %s is missing", setting_key);
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
snprintf(setting_prefix, sizeof(setting_prefix), "%sTTLS-Phase2-",
|
||||
prefix);
|
||||
|
Loading…
Reference in New Issue
Block a user