]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vtls: fix addsessionid for non-proxy builds
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2021 10:50:57 +0000 (12:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2021 12:20:13 +0000 (14:20 +0200)
Follow-up to b09c8ee15771c61
Fixes #6812
Closes #6811

lib/vtls/vtls.c

index 95fd6356285f79a7c4aae6e7279e12ebed6722ab..2e07df0a04623bc04e5b585f91b5123fe78f3b47 100644 (file)
@@ -504,11 +504,8 @@ CURLcode Curl_ssl_addsessionid(struct Curl_easy *data,
   const char *hostname = isProxy ? conn->http_proxy.host.name :
     conn->host.name;
 #else
-  /* proxy support disabled */
-  const bool isProxy = FALSE;
   struct ssl_primary_config * const ssl_config = &conn->ssl_config;
   const char *hostname = conn->host.name;
-  (void)sockindex;
 #endif
   (void)sockindex;
   DEBUGASSERT(SSL_SET_OPTION(primary.sessionid));