]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: set the transfer pointer for logging early
authorDaniel Stenberg <daniel@haxx.se>
Thu, 25 Mar 2021 10:06:01 +0000 (11:06 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Mar 2021 15:16:55 +0000 (16:16 +0100)
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

index 9989ca460cf461a089698cf8bce1f561798e8982..a9690383ddf89ef16a5c1623d41ac09ec072d81f 100644 (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