← Commit list

7ea37abc6a

Daniel Stenberg
Daniel Stenberg
2026-08-25
SUCCESS Duration: 392s

Subject

openssl: avoid conn reuse if provider is used

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/openssl.c+5 -0
@@ -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);