summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-09-27 11:48:32 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-09-27 11:48:32 +0200
commitbc47574b247e072387bc35740c3c493a06bd351d (patch)
treeb8437bef3c25f960d03dada37e8f5f7156261401 /common
parentfcbd1913f9bf4e243d037ce72d5301b13db0f226 (diff)
downloadeurephia-bc47574b247e072387bc35740c3c493a06bd351d.tar.gz
eurephia-bc47574b247e072387bc35740c3c493a06bd351d.tar.xz
eurephia-bc47574b247e072387bc35740c3c493a06bd351d.zip
Discovered a failing loop check
This could cause eurephia to use a faulty hashing rounds value. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'common')
-rw-r--r--common/passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/passwd.c b/common/passwd.c
index 8b2daa6..4408e02 100644
--- a/common/passwd.c
+++ b/common/passwd.c
@@ -507,7 +507,7 @@ char *eurephia_pwd_crypt(eurephiaCTX *ctx, const char *key, const char *salt) {
loop++;
} while( ((rounds < minrounds) || (rounds > maxrounds)) && (loop < 1000)) ;
- if( loop > 10000 ) {
+ if( loop >= 1000 ) {
eurephia_log(ctx, LOG_FATAL, 0,
"Could not get a valid random number for hashing after %i rounds", 1000);
return NULL;