From db4e0bd85f994d14c950f4a7378be550331cf5b0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 25 Mar 2021 11:06:01 +0100 Subject: [PATCH] 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 --- lib/vtls/openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 9989ca460..a9690383d 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -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