summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-05-24 13:48:04 +0000
committerPierre Joye <pajoye@php.net>2011-05-24 13:48:04 +0000
commit59c102bf51a3dfab11a3014b80d2a1de83533e16 (patch)
tree3ab5ce153d282f6536774933cda7f8907d43c4aa /ext/standard/php_crypt_r.c
parent6f594fc5ea4d5628b6969c0819c686b3c730ea97 (diff)
downloadphp-git-59c102bf51a3dfab11a3014b80d2a1de83533e16.tar.gz
- Fix #54721, different Hashes on Windows, BSD and Linux on wrong Salt size
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r--ext/standard/php_crypt_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c
index cd3746258c..2d71710cfd 100644
--- a/ext/standard/php_crypt_r.c
+++ b/ext/standard/php_crypt_r.c
@@ -197,7 +197,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out) {
goto _destroyCtx1;
}
- dwHashLen = pwl + sl + pwl;
+ dwHashLen = 16;
CryptGetHashParam(ctx1, HP_HASHVAL, final, &dwHashLen, 0);
/* MD5(pw,salt,pw). Valid. */