From: Daniel Stenberg Date: Thu, 11 May 2006 05:17:40 +0000 (+0000) Subject: make sure the LASTSOCKET check only checks for SSL status if the socket X-Git-Tag: curl-7_15_4~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d5f5e3be82fe22fb9bd3ccdcd5a959d0574020a;p=curl make sure the LASTSOCKET check only checks for SSL status if the socket truly use SSL --- 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 */