diff options
author | Pierre Joye <pajoye@php.net> | 2011-05-24 13:48:04 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-05-24 13:48:04 +0000 |
commit | 59c102bf51a3dfab11a3014b80d2a1de83533e16 (patch) | |
tree | 3ab5ce153d282f6536774933cda7f8907d43c4aa /ext/standard/php_crypt_r.c | |
parent | 6f594fc5ea4d5628b6969c0819c686b3c730ea97 (diff) | |
download | php-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.c | 2 |
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. */ |