diff options
Diffstat (limited to 'ext/standard/crypt_sha512.c')
-rw-r--r-- | ext/standard/crypt_sha512.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c index df5f3d109e..3cef9a3437 100644 --- a/ext/standard/crypt_sha512.c +++ b/ext/standard/crypt_sha512.c @@ -643,8 +643,8 @@ php_sha512_crypt(const char *key, const char *salt) { password. We can compute an upper bound for the size of the result in advance and so we can prepare the buffer we pass to `sha512_crypt_r'. */ - static char *buffer; - static int buflen; + ZEND_TLS char *buffer; + ZEND_TLS int buflen = 0; int needed = (int)(sizeof(sha512_salt_prefix) - 1 + sizeof(sha512_rounds_prefix) + 9 + 1 + strlen(salt) + 1 + 86 + 1); |