aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-17 18:06:33 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-17 18:06:33 (GMT)
commite9447a94c04b0f7f450d6c072a7d4037c30d3558 (patch)
tree3f51bf4003d895efb95cc19fc3aafe19732f3e64 /hostapd
parent895c6434073b801cf1033f354b5a21a6654d6a65 (diff)
downloadhostap-e9447a94c04b0f7f450d6c072a7d4037c30d3558.zip
hostap-e9447a94c04b0f7f450d6c072a7d4037c30d3558.tar.gz
hostap-e9447a94c04b0f7f450d6c072a7d4037c30d3558.tar.bz2
Use a single define for maximum number of EAP methods
This cleans up the code a bit by not having to deal with theoretical possibility of maximum number of EAP methods to be different between various components in hostapd. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 1bfd456..6708244 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -330,7 +330,7 @@ static int hostapd_config_read_eap_user(const char *fname,
}
num_methods++;
- if (num_methods >= EAP_USER_MAX_METHODS)
+ if (num_methods >= EAP_MAX_METHODS)
break;
skip_eap:
if (pos3 == NULL)