diff options
author | Jouni Malinen <j@w1.fi> | 2011-11-17 20:06:33 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-11-17 20:06:33 +0200 |
commit | e9447a94c04b0f7f450d6c072a7d4037c30d3558 (patch) | |
tree | 3f51bf4003d895efb95cc19fc3aafe19732f3e64 /hostapd/config_file.c | |
parent | 895c6434073b801cf1033f354b5a21a6654d6a65 (diff) | |
download | external_wpa_supplicant_8_ti-e9447a94c04b0f7f450d6c072a7d4037c30d3558.zip external_wpa_supplicant_8_ti-e9447a94c04b0f7f450d6c072a7d4037c30d3558.tar.gz external_wpa_supplicant_8_ti-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/config_file.c')
-rw-r--r-- | hostapd/config_file.c | 2 |
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) |