1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

vtls: fix addsessionid for non-proxy builds

Follow-up to b09c8ee157
Fixes #6812
Closes #6811
This commit is contained in:
Daniel Stenberg 2021-03-29 12:50:57 +02:00
parent 9d4f21b190
commit 2c26eeef12
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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));