]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel: fix unused variable warning
authorJay Satiro <raysatiro@yahoo.com>
Sun, 19 Nov 2023 23:06:55 +0000 (18:06 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 20 Nov 2023 07:55:50 +0000 (02:55 -0500)
Bug: https://github.com/curl/curl/pull/12349#issuecomment-1818000846
Reported-by: Viktor Szakats
Closes https://github.com/curl/curl/pull/12361

lib/vtls/schannel.c

index fc9a8cb71443c8f385b27933a79d67123d7648c1..ae7f2956da69c72d0ca08ab790d600e5cc91f857 100644 (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)) {