]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Reject eap_server_erp hostapd.conf parameter without CONFIG_ERP=y
authorJouni Malinen <jouni@codeaurora.org>
Wed, 28 Feb 2018 11:09:07 +0000 (13:09 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 28 Feb 2018 11:09:07 +0000 (13:09 +0200)
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>
hostapd/config_file.c

index cdd2b63f1621ec135966b3cecd142eb3bd33a305..8075b6dac9ff27bc726887d1d6618797ec2e495c 100644 (file)
@@ -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;