mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fix #55301 (curl part) check if malloc succeded
This commit is contained in:
parent
be217d08a4
commit
103d475021
@ -819,6 +819,9 @@ PHP_MINIT_FUNCTION(curl)
|
||||
int i, c = CRYPTO_num_locks();
|
||||
|
||||
php_curl_openssl_tsl = malloc(c * sizeof(MUTEX_T));
|
||||
if (!php_curl_openssl_tsl) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
for (i = 0; i < c; ++i) {
|
||||
php_curl_openssl_tsl[i] = tsrm_mutex_alloc();
|
||||
|
Loading…
Reference in New Issue
Block a user