From 427729ee67fa53ff38cf7ac7023d112ecc90950e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 28 Feb 2018 13:09:07 +0200 Subject: [PATCH] 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 --- hostapd/config_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index cdd2b63f1..8075b6dac 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -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;