mirror of
https://github.com/curl/curl.git
synced 2025-09-16 09:02:40 +03:00
openssl: prevent recursive function calls from ctx callbacks
Follow the pattern of many other callbacks. Ref: #4546 Closes #4585
This commit is contained in:
parent
cbaaae44fe
commit
8686aab694
|
@ -2806,8 +2806,10 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
|
||||||
|
|
||||||
/* give application a chance to interfere with SSL set up. */
|
/* give application a chance to interfere with SSL set up. */
|
||||||
if(data->set.ssl.fsslctx) {
|
if(data->set.ssl.fsslctx) {
|
||||||
|
Curl_set_in_callback(data, true);
|
||||||
result = (*data->set.ssl.fsslctx)(data, BACKEND->ctx,
|
result = (*data->set.ssl.fsslctx)(data, BACKEND->ctx,
|
||||||
data->set.ssl.fsslctxp);
|
data->set.ssl.fsslctxp);
|
||||||
|
Curl_set_in_callback(data, false);
|
||||||
if(result) {
|
if(result) {
|
||||||
failf(data, "error signaled by ssl ctx callback");
|
failf(data, "error signaled by ssl ctx callback");
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user