Unverified Commit f104f7d9 authored by Marcel Raad's avatar Marcel Raad
Browse files

schannel: fix unused variable warning

If CURL_DISABLE_VERBOSE_STRINGS is defined, hostname is not used in
schannel_connect_step3.
parent a8e523f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -690,8 +690,10 @@ schannel_connect_step3(struct connectdata *conn, int sockindex)
  struct ssl_connect_data *connssl = &conn->ssl[sockindex];
  SECURITY_STATUS sspi_status = SEC_E_OK;
  CERT_CONTEXT *ccert_context = NULL;
#ifndef CURL_DISABLE_VERBOSE_STRINGS
  const char * const hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name :
    conn->host.name;
#endif
#ifdef HAS_ALPN
  SecPkgContext_ApplicationProtocol alpn_result;
#endif