diff options
Diffstat (limited to 'ext/standard/crypt_sha256.c')
| -rw-r--r-- | ext/standard/crypt_sha256.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/crypt_sha256.c b/ext/standard/crypt_sha256.c index d79d14510a..38c285942e 100644 --- a/ext/standard/crypt_sha256.c +++ b/ext/standard/crypt_sha256.c @@ -596,8 +596,8 @@ char * php_sha256_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 `sha256_crypt_r'. */ - static char *buffer; - static int buflen; + ZEND_TLS char *buffer; + ZEND_TLS int buflen = 0; int needed = (sizeof(sha256_salt_prefix) - 1 + sizeof(sha256_rounds_prefix) + 9 + 1 + (int)strlen(salt) + 1 + 43 + 1); |
