mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:23:31 +03:00
parent
afdbb176f6
commit
d123f0e590
1 changed files with 6 additions and 1 deletions
|
|
@ -2471,8 +2471,10 @@ static CURLcode transfer_per_config(struct GlobalConfig *global,
|
||||||
*/
|
*/
|
||||||
result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR,
|
result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR,
|
||||||
&tls_backend_info);
|
&tls_backend_info);
|
||||||
if(result)
|
if(result) {
|
||||||
|
curl_easy_cleanup(curltls);
|
||||||
return result;
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set the CA cert locations specified in the environment. For Windows if
|
/* Set the CA cert locations specified in the environment. For Windows if
|
||||||
* no environment-specified filename is found then check for CA bundle
|
* no environment-specified filename is found then check for CA bundle
|
||||||
|
|
@ -2489,6 +2491,7 @@ static CURLcode transfer_per_config(struct GlobalConfig *global,
|
||||||
config->cacert = strdup(env);
|
config->cacert = strdup(env);
|
||||||
if(!config->cacert) {
|
if(!config->cacert) {
|
||||||
curl_free(env);
|
curl_free(env);
|
||||||
|
curl_easy_cleanup(curltls);
|
||||||
errorf(global, "out of memory\n");
|
errorf(global, "out of memory\n");
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
@ -2499,6 +2502,7 @@ static CURLcode transfer_per_config(struct GlobalConfig *global,
|
||||||
config->capath = strdup(env);
|
config->capath = strdup(env);
|
||||||
if(!config->capath) {
|
if(!config->capath) {
|
||||||
curl_free(env);
|
curl_free(env);
|
||||||
|
curl_easy_cleanup(curltls);
|
||||||
helpf(global->errors, "out of memory\n");
|
helpf(global->errors, "out of memory\n");
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
@ -2510,6 +2514,7 @@ static CURLcode transfer_per_config(struct GlobalConfig *global,
|
||||||
config->cacert = strdup(env);
|
config->cacert = strdup(env);
|
||||||
if(!config->cacert) {
|
if(!config->cacert) {
|
||||||
curl_free(env);
|
curl_free(env);
|
||||||
|
curl_easy_cleanup(curltls);
|
||||||
errorf(global, "out of memory\n");
|
errorf(global, "out of memory\n");
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue