From bc47574b247e072387bc35740c3c493a06bd351d Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Mon, 27 Sep 2010 11:48:32 +0200 Subject: Discovered a failing loop check This could cause eurephia to use a faulty hashing rounds value. Signed-off-by: David Sommerseth --- common/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') 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; -- cgit