diff options
author | Pierre Joye <pajoye@php.net> | 2011-07-28 10:31:34 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-07-28 10:31:34 +0000 |
commit | 42c4b86c886a021abcf47e0144454b6e04d504ff (patch) | |
tree | f57a0bafb8e08ee5645996bb3b89de57a902e3d0 /ext | |
parent | 0e3ec21e6fe63c93b6a7ab06ee37a06416363a9e (diff) | |
download | php-git-42c4b86c886a021abcf47e0144454b6e04d504ff.tar.gz |
- Fix #55301 (curl part) check if malloc succeded
Diffstat (limited to 'ext')
-rw-r--r-- | ext/curl/interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index dd176af252..8915669803 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -821,6 +821,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(); |