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
commitc689dd9d59a98c1c5442002470524bc0955a7a6b (patch)
tree24f6e12ca5e8df020ba24179b9150a2875ec9f9f /ext/standard/php_crypt_r.c
parent079f2a226c491d81f5fea522dec6170a0675cc01 (diff)
downloadphp-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.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. */