schannel: fix unused variable warning

Bug: https://github.com/curl/curl/pull/12349#issuecomment-1818000846
Reported-by: Viktor Szakats

Closes https://github.com/curl/curl/pull/12361
This commit is contained in:
Jay Satiro 2023-11-19 18:06:55 -05:00
parent b2d8f3f7f9
commit 9ac6023d36

View File

@ -1064,12 +1064,11 @@ schannel_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data)
SECURITY_STATUS sspi_status = SEC_E_OK;
struct Curl_schannel_cred *old_cred = NULL;
CURLcode result;
const char *hostname = connssl->peer.hostname;
DEBUGASSERT(backend);
DEBUGF(infof(data,
"schannel: SSL/TLS connection with %s port %d (step 1/3)",
hostname, connssl->port));
connssl->peer.hostname, connssl->port));
if(curlx_verify_windows_version(5, 1, 0, PLATFORM_WINNT,
VERSION_LESS_THAN_EQUAL)) {