1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-04 16:45:06 -05:00

openssl: set the transfer pointer for logging early

Otherwise, the transfer will be NULL in the trace function when the
early handshake details arrive and then curl won't show them.

Regresssion in 7.75.0

Reported-by: David Hu
Fixes #6783
Closes #6792
This commit is contained in:
Daniel Stenberg 2021-03-25 11:06:01 +01:00
parent cd7aec95d6
commit db4e0bd85f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2588,6 +2588,7 @@ static CURLcode ossl_connect_step1(struct Curl_easy *data,
/* the SSL trace callback is only used for verbose logging */
SSL_CTX_set_msg_callback(backend->ctx, ossl_trace);
SSL_CTX_set_msg_callback_arg(backend->ctx, conn);
set_logger(conn, data);
}
#endif