]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel: restore debug message in schannel_connect_step2
authorJay Satiro <raysatiro@yahoo.com>
Thu, 27 Jan 2022 08:32:37 +0000 (03:32 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 28 Jan 2022 07:42:57 +0000 (02:42 -0500)
This is a follow-up to recent commit 2218c3a which removed the debug
message to avoid an unused variable warning. The message has been
reworked to avoid the warning.

Ref: https://github.com/curl/curl/pull/8320#issuecomment-1022957904

Closes https://github.com/curl/curl/pull/8336

lib/vtls/schannel.c

index 983ed540d42062605cde9ffe67d7377c58de0174..e8bed4eac56fdf268b9e423441603d550492ed2a 100644 (file)
@@ -1037,6 +1037,10 @@ schannel_connect_step2(struct Curl_easy *data, struct connectdata *conn,
 
   doread = (connssl->connecting_state != ssl_connect_2_writing) ? TRUE : FALSE;
 
+  DEBUGF(infof(data,
+               "schannel: SSL/TLS connection with %s port %hu (step 2/3)",
+               SSL_HOST_NAME(), conn->remote_port));
+
   if(!backend->cred || !backend->ctxt)
     return CURLE_SSL_CONNECT_ERROR;