diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index d74fbcf3c..f884ad1e5 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -204,7 +204,7 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) sock[FIRSTSOCKET]; /* we have a socket connected, let's determine if the server shut down */ /* determine if ssl */ - if(data->state.connects[data->state.lastconnect]->protocol & PROT_SSL) { + if(data->state.connects[data->state.lastconnect]->ssl[FIRSTSOCKET].use) { /* use the SSL context */ if (!Curl_ssl_check_cxn(data->state.connects[data->state.lastconnect])) *param_longp = -1; /* FIN received */ |