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 | c689dd9d59a98c1c5442002470524bc0955a7a6b (patch) | |
tree | 24f6e12ca5e8df020ba24179b9150a2875ec9f9f /ext/standard/php_crypt_r.c | |
parent | 079f2a226c491d81f5fea522dec6170a0675cc01 (diff) | |
download | php-git-c689dd9d59a98c1c5442002470524bc0955a7a6b.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. */ |