mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
- fix #60895, possible invalid handler usage
This commit is contained in:
parent
9fa30bf52b
commit
1e462057cd
1 changed files with 4 additions and 2 deletions
|
@ -62,8 +62,10 @@ void php_win32_init_rng_lock()
|
||||||
void php_win32_free_rng_lock()
|
void php_win32_free_rng_lock()
|
||||||
{
|
{
|
||||||
tsrm_mutex_lock(php_lock_win32_cryptoctx);
|
tsrm_mutex_lock(php_lock_win32_cryptoctx);
|
||||||
CryptReleaseContext(hCryptProv, 0);
|
if (has_crypto_ctx == 1) {
|
||||||
has_crypto_ctx = 0;
|
CryptReleaseContext(hCryptProv, 0);
|
||||||
|
has_crypto_ctx = 0;
|
||||||
|
}
|
||||||
tsrm_mutex_unlock(php_lock_win32_cryptoctx);
|
tsrm_mutex_unlock(php_lock_win32_cryptoctx);
|
||||||
tsrm_mutex_free(php_lock_win32_cryptoctx);
|
tsrm_mutex_free(php_lock_win32_cryptoctx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue