mirror of
https://github.com/curl/curl.git
synced 2026-05-30 03:37:28 +03:00
parent
c545e10fa7
commit
3f1a8dbb98
1 changed files with 2 additions and 2 deletions
|
|
@ -1098,8 +1098,6 @@ cr_init_backend(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
&backend->config);
|
||||
if(rr != RUSTLS_RESULT_OK) {
|
||||
rustls_failf(data, rr, "failed to build client config");
|
||||
rustls_client_config_builder_free(config_builder);
|
||||
rustls_client_config_free(backend->config);
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
|
||||
|
|
@ -1109,6 +1107,8 @@ cr_init_backend(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
&rconn);
|
||||
if(rr != RUSTLS_RESULT_OK) {
|
||||
rustls_failf(data, rr, "rustls_client_connection_new");
|
||||
rustls_client_config_free(backend->config);
|
||||
backend->config = NULL;
|
||||
return CURLE_COULDNT_CONNECT;
|
||||
}
|
||||
DEBUGASSERT(rconn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue