mirror of
https://github.com/curl/curl.git
synced 2026-05-30 07:07:30 +03:00
parent
470d546048
commit
34294a65b2
1 changed files with 12 additions and 0 deletions
|
|
@ -3570,6 +3570,9 @@ static CURLcode get_cert_chain(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
mem = BIO_new(BIO_s_mem());
|
||||
if(!mem) {
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
for(i = 0; i < (int)numcerts; i++) {
|
||||
ASN1_INTEGER *num;
|
||||
|
|
@ -3866,6 +3869,15 @@ static CURLcode servercert(struct Curl_easy *data,
|
|||
BIO *mem = BIO_new(BIO_s_mem());
|
||||
struct ssl_backend_data *backend = connssl->backend;
|
||||
|
||||
if(!mem) {
|
||||
failf(data,
|
||||
"BIO_new return NULL, " OSSL_PACKAGE
|
||||
" error %s",
|
||||
ossl_strerror(ERR_get_error(), error_buffer,
|
||||
sizeof(error_buffer)) );
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
if(data->set.ssl.certinfo)
|
||||
/* we've been asked to gather certificate info! */
|
||||
(void)get_cert_chain(data, connssl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue