mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Reject eap_server_erp hostapd.conf parameter without CONFIG_ERP=y
This provides an explicit error report if runtime configuration is not valid and ERP server functionality cannot be used. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
ba5498d207
commit
427729ee67
@ -2330,8 +2330,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,
|
||||
} else if (os_strcmp(buf, "pwd_group") == 0) {
|
||||
bss->pwd_group = atoi(pos);
|
||||
#endif /* EAP_SERVER_PWD */
|
||||
#ifdef CONFIG_ERP
|
||||
} else if (os_strcmp(buf, "eap_server_erp") == 0) {
|
||||
bss->eap_server_erp = atoi(pos);
|
||||
#endif /* CONFIG_ERP */
|
||||
#endif /* EAP_SERVER */
|
||||
} else if (os_strcmp(buf, "eap_message") == 0) {
|
||||
char *term;
|
||||
|
Loading…
Reference in New Issue
Block a user