mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:03:33 +03:00
openssl: avoid conn reuse if provider is used
Reported-by: Stanislav Fort Closes #22665
This commit is contained in:
parent
c9ecd8f8df
commit
7ea37abc6a
1 changed files with 5 additions and 0 deletions
|
|
@ -3756,6 +3756,11 @@ CURLcode Curl_ossl_ctx_init(struct ossl_ctx *octx,
|
|||
ossl_strerror(ERR_peek_error(), error_buffer, sizeof(error_buffer)));
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
#ifdef OPENSSL_HAS_PROVIDERS
|
||||
if(data->state.libctx)
|
||||
/* forbid connection reuse with provider/engine use */
|
||||
connclose(data->conn);
|
||||
#endif
|
||||
|
||||
if(cb_setup) {
|
||||
result = cb_setup(cf, data, cb_user_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue