mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-05 12:52:37 +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);
|
prefix);
|
||||||
phase2_method_name = l_settings_get_value(settings, "Security",
|
phase2_method_name = l_settings_get_value(settings, "Security",
|
||||||
setting_key);
|
setting_key);
|
||||||
|
if (!phase2_method_name) {
|
||||||
|
l_error("Setting %s is missing", setting_key);
|
||||||
|
return -ENOENT;
|
||||||
|
}
|
||||||
|
|
||||||
snprintf(setting_prefix, sizeof(setting_prefix), "%sTTLS-Phase2-",
|
snprintf(setting_prefix, sizeof(setting_prefix), "%sTTLS-Phase2-",
|
||||||
prefix);
|
prefix);
|
||||||
|
Loading…
Reference in New Issue
Block a user