From 598b142f6d6778e48beb5b7f42dac3279ea3a98c Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Thu, 27 Jan 2022 03:32:37 -0500 Subject: [PATCH] schannel: restore debug message in schannel_connect_step2 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index 983ed540d4..e8bed4eac5 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -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;