aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_common
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-30 16:12:41 +0300
committerJouni Malinen <j@w1.fi>2012-06-30 16:12:41 +0300
commit0f27f15911c4ed68e757f3af9f65f7696a321876 (patch)
tree65bd7655f5d92fdc1ba887aac9984253e35aab9e /src/eap_common
parent532b16c7a9d29cbf6e62a4120b54f2bf4ef525a2 (diff)
downloadexternal_wpa_supplicant_8_ti-0f27f15911c4ed68e757f3af9f65f7696a321876.zip
external_wpa_supplicant_8_ti-0f27f15911c4ed68e757f3af9f65f7696a321876.tar.gz
external_wpa_supplicant_8_ti-0f27f15911c4ed68e757f3af9f65f7696a321876.tar.bz2
EAP-pwd: Increase maximum number of hunting-and-pecking iterations
The previously used limit (10) is too small for practical purposes since it can result in about 1 out of 1000 authentication attempts failing. Increase the limit to 30 to avoid such issues. [Bug 453] Signed-hostap: Jouni Malinen <j@w1.fi> intended-for: hostap-1
Diffstat (limited to 'src/eap_common')
-rw-r--r--src/eap_common/eap_pwd_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_common/eap_pwd_common.c b/src/eap_common/eap_pwd_common.c
index 5b6bf3c..f85564a 100644
--- a/src/eap_common/eap_pwd_common.c
+++ b/src/eap_common/eap_pwd_common.c
@@ -154,7 +154,7 @@ int compute_password_element(EAP_PWD_group *grp, u16 num,
os_memset(prfbuf, 0, primebytelen);
ctr = 0;
while (1) {
- if (ctr > 10) {
+ if (ctr > 30) {
wpa_printf(MSG_INFO, "EAP-pwd: unable to find random "
"point on curve for group %d, something's "
"fishy", num);