From 5d5f5e3be82fe22fb9bd3ccdcd5a959d0574020a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 11 May 2006 05:17:40 +0000 Subject: make sure the LASTSOCKET check only checks for SSL status if the socket truly use SSL --- lib/getinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/getinfo.c') 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 */ -- cgit v1.2.3