make sure the LASTSOCKET check only checks for SSL status if the socket

truly use SSL
This commit is contained in:
Daniel Stenberg 2006-05-11 05:17:40 +00:00
parent d9e14408f0
commit 5d5f5e3be8

View File

@ -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 */